diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/README.md b/Sitecore 8.2.1/xdb/addons/Monitoring/README.md index c497ccc8..cbb3723a 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.1/xdb/addons/Monitoring/azuredeploy.json index 28b7989b..b1ff7c79 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index a3c215ee..07d5cbf8 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avhvt/roobf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avhvt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt/roobf/iukoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avhvt/schedules/roobf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/geqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index 7d612f93..1b81b654 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jebgt/kgkfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jebgt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt/kgkfn/vkkwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jebgt/schedules/kgkfn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crdeg/ozysu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crdeg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg/ozysu/xegvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crdeg/schedules/ozysu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icdqx/nlrha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icdqx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx/nlrha/hsixz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icdqx/schedules/nlrha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvngj/ghtlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvngj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj/ghtlm/drqus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvngj/schedules/ghtlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/magsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/magsj/gtzve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/magsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/magsj/gtzve/agmow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/magsj/schedules/gtzve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/naesg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/naesg/vlpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/naesg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/naesg/vlpnu/yqmxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/naesg/schedules/vlpnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enjas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enjas/zcvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enjas')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enjas/zcvad/bddjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enjas/schedules/zcvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akpul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akpul/cwmez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akpul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akpul/cwmez/hnxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akpul/schedules/cwmez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zonfp/txisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zonfp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp/txisw/ojfgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zonfp/schedules/txisw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aplrx/hghlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aplrx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx/hghlb/liutn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aplrx/schedules/hghlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcmbi/cshjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcmbi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi/cshjx/okmve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcmbi/schedules/cshjx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djapv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djapv/ubrve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djapv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djapv/ubrve/kbmtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djapv/schedules/ubrve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmjrm/btyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmjrm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm/btyja/dtnfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmjrm/schedules/btyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmxku/desmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmxku')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku/desmg/piyqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmxku/schedules/desmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/huqqs/badkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/huqqs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs/badkl/zsqtz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/huqqs/schedules/badkl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbeoh/gxbsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbeoh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh/gxbsu/rzafq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbeoh/schedules/gxbsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqkns/iaoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqkns')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns/iaoxk/utomr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqkns/schedules/iaoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emjic/doxbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emjic')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emjic/doxbg/clbed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emjic/schedules/doxbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxwlj/sbzjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxwlj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj/sbzjv/jdwho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxwlj/schedules/sbzjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnjcr/ychkg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnjcr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr/ychkg/keazy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnjcr/schedules/ychkg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbmiv/jegoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbmiv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv/jegoo/pwhao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbmiv/schedules/jegoo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urkyc/abkcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urkyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc/abkcr/lfhvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urkyc/schedules/abkcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzhet/jyxhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzhet')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet/jyxhv/wehyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzhet/schedules/jyxhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leofb/xlchd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leofb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leofb/xlchd/kdnty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leofb/schedules/xlchd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnhrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqork')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuhyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inkwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onslx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twfnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgmvy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/egbuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljsca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/btxfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnypz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcwvz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukwid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojndu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pziha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omlzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfnwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoxmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzoki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/geors')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qegsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebserverfarms.json index bbe11029..3801e7bc 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qfcan/dsaob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qfcan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan/dsaob/mbudw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qfcan/schedules/dsaob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ahfky/tefwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ahfky')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky/tefwu/pefwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ahfky/schedules/tefwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdjvv/xyghm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdjvv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv/xyghm/hvfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdjvv/schedules/xyghm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afvpu/fixki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afvpu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu/fixki/fcoza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afvpu/schedules/fixki')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmxgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngdne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbtbz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebsites.json index 67fad995..a3eb43fe 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syqmf/cmlgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syqmf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf/cmlgx/cuiuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syqmf/schedules/cmlgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hgrne/tlhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hgrne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne/tlhfo/imdtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hgrne/schedules/tlhfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtluj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/redbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/application.json index 1720efc7..fcc72d7a 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/integration.json index 4a8dccb8..d0e9039d 100644 --- a/Sitecore 8.2.1/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.1/xdb/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/README.md b/Sitecore 8.2.1/xm/addons/Monitoring/README.md index e918100e..96d6d022 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.1/xm/addons/Monitoring/README.md @@ -25,7 +25,8 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.1/xm/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertcacheredis.json index 3d3b529a..c958b794 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gymfh/xrxut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gymfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh/xrxut/utgfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gymfh/schedules/xrxut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgdlf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 0f5a382c..713826ad 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rshwz/ctwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rshwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz/ctwpf/wbuhy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rshwz/schedules/ctwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xkhqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index adf3d152..9aaa23f8 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwdxz/yzrjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwdxz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz/yzrjh/yotml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwdxz/schedules/yzrjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atdvu/lvwac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atdvu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu/lvwac/mnqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atdvu/schedules/lvwac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhqgi/bmhpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhqgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi/bmhpz/qcbio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhqgi/schedules/bmhpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pojsl/tuolq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pojsl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl/tuolq/pyoqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pojsl/schedules/tuolq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fykdl/yenwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fykdl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl/yenwo/jsygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fykdl/schedules/yenwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ljcjz/bxgtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ljcjz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz/bxgtj/zrivj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ljcjz/schedules/bxgtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohfsu/empcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohfsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu/empcu/shdrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohfsu/schedules/empcu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eirkt/yynft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eirkt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt/yynft/yuhin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eirkt/schedules/yynft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/brahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/brahc/cxhvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/brahc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/brahc/cxhvq/vwxdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/brahc/schedules/cxhvq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pkfgy/ppock')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pkfgy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy/ppock/danet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pkfgy/schedules/ppock')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqyzl/tmicf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqyzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl/tmicf/cjtqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqyzl/schedules/tmicf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdlbh/qtouk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdlbh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh/qtouk/mgfdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdlbh/schedules/qtouk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzudf/lpdsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzudf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf/lpdsx/zfrmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzudf/schedules/lpdsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gynth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gynth/grfso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gynth')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gynth/grfso/vzymn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gynth/schedules/grfso')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aryck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aryck/wmyuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aryck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aryck/wmyuf/xngiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aryck/schedules/wmyuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qskwe/cpkam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qskwe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe/cpkam/olhfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qskwe/schedules/cpkam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngpds/dquyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds/dquyx/qdhzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngpds/schedules/dquyx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nadue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nadue/ooapy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nadue')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nadue/ooapy/azhsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nadue/schedules/ooapy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/iubcl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odjsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvkoz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnvjo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmeul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqfgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bijzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dntzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyalk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnnij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grteb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rftws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxtdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmvub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxide')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umrse')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcvyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywzlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebserverfarms.json index 81ae01d7..f0db4e63 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsquh/qvzla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsquh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh/qvzla/ydciq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsquh/schedules/qvzla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpgoy/qanpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpgoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy/qanpi/sjayl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpgoy/schedules/qanpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/botiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/botiw/kexpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/botiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/botiw/kexpf/wbulz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/botiw/schedules/kexpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/toohs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/toohs/bqnyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/toohs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/toohs/bqnyg/mjuid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/toohs/schedules/bqnyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/anvmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ounef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miygh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtkhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebsites.json index 07633e2b..f343ab86 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efxhb/qpxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efxhb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb/qpxmu/aoyvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efxhb/schedules/qpxmu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkvcs/qryan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkvcs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs/qryan/ioaud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkvcs/schedules/qryan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/izffw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqtbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/application.json index 4b6fd7cb..3b49909f 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.1/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.1/xm/addons/Monitoring/nested/integration.json index d192d618..94f40a86 100644 --- a/Sitecore 8.2.1/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.1/xm/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/README.md b/Sitecore 8.2.1/xp/addons/Monitoring/README.md index ac2df5e9..58e3f9dc 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.1/xp/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.1/xp/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertcacheredis.json index d00c0912..389a8e39 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwtx/vglac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwtx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx/vglac/qwbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwtx/schedules/vglac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfoey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 0239013b..702f5010 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iejct/hkvxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iejct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct/hkvxp/qvkmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iejct/schedules/hkvxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/krtjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 5e34914f..d621a079 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kiaxm/gicna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kiaxm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm/gicna/balob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kiaxm/schedules/gicna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvsc/fyofk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvsc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc/fyofk/qusih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvsc/schedules/fyofk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pemwj/lbdij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pemwj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj/lbdij/tofqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pemwj/schedules/lbdij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxqui/exfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxqui')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui/exfky/wgsde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxqui/schedules/exfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbmcp/rmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbmcp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp/rmnpu/uvmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbmcp/schedules/rmnpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dysva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dysva/kwclt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dysva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dysva/kwclt/hyfda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dysva/schedules/kwclt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdvqs/gtfjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdvqs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs/gtfjn/awkta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdvqs/schedules/gtfjn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgxza/esdci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgxza')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza/esdci/tdyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgxza/schedules/esdci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oljmf/daixa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oljmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf/daixa/jgtmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oljmf/schedules/daixa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fjgrp/pqsly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fjgrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp/pqsly/ypoex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fjgrp/schedules/pqsly')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbnol/zjhxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbnol')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol/zjhxg/rasjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbnol/schedules/zjhxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dvlza/mgxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dvlza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza/mgxhu/wxicy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dvlza/schedules/mgxhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cejqi/eoqdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cejqi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi/eoqdn/qovcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cejqi/schedules/eoqdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqysj/ztevf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqysj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj/ztevf/yqgaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqysj/schedules/ztevf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybffx/fzlqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybffx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx/fzlqg/iqnbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybffx/schedules/fzlqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wpbck/pldmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wpbck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck/pldmc/zexiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wpbck/schedules/pldmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsilf/fbmjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsilf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf/fbmjz/escgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsilf/schedules/fbmjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqijv/ulbah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqijv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv/ulbah/bcfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqijv/schedules/ulbah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qavug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qavug/pzuce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qavug')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qavug/pzuce/hcyua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qavug/schedules/pzuce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rqwyd/clfvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rqwyd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd/clfvs/arlzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rqwyd/schedules/clfvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxajo/ubkbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxajo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo/ubkbp/fgtei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxajo/schedules/ubkbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqrja/jkmxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqrja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja/jkmxy/xutgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqrja/schedules/jkmxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jumzt/mcbdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jumzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt/mcbdn/kbjsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jumzt/schedules/mcbdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvpip/earuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvpip')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip/earuz/ksacc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvpip/schedules/earuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/alnif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezike')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgtxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htdef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlusf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itcfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htcre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfxeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmlkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cyqqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkvmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbowt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnvzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfzxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxgzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wstfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/joqog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alyix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngcot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsgrp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shlqo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebserverfarms.json index 0bde498a..b0106348 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaqsl/ymrgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaqsl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl/ymrgl/kjnor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaqsl/schedules/ymrgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlydv/wfzap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlydv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv/wfzap/wgryj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlydv/schedules/wfzap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ordsw/pbmeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ordsw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw/pbmeo/kvunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ordsw/schedules/pbmeo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flmgc/ccyez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flmgc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc/ccyez/bcgsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flmgc/schedules/ccyez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdkzv/dqzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdkzv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv/dqzsv/jvxpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdkzv/schedules/dqzsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uluta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uluta/mgngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uluta')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uluta/mgngs/ncjvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uluta/schedules/mgngs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkvjd/aogmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkvjd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd/aogmv/ncodu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkvjd/schedules/aogmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlncq/opcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlncq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq/opcqn/befwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlncq/schedules/opcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/odejq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnhta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxear')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knctm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/guvie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akhwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpnbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajmxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebsites.json index eb248bae..67f7376d 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drkae/ujthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drkae')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae/ujthu/eodyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drkae/schedules/ujthu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kipme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kipme/huqpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kipme')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kipme/huqpi/npwij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kipme/schedules/huqpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvjwa/ithlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvjwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa/ithlv/adldo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvjwa/schedules/ithlv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dobjp/livjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dobjp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp/livjo/wfyyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dobjp/schedules/livjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdmeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/worwt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiabh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/application.json index d19e1ab6..d7fdd163 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/application.json @@ -1,1369 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.1/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.1/xp/addons/Monitoring/nested/integration.json index cb0b453e..c0bc8542 100644 --- a/Sitecore 8.2.1/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.1/xp/addons/Monitoring/nested/integration.json @@ -1,237 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/README.md b/Sitecore 8.2.2/xdb/addons/Monitoring/README.md index c497ccc8..cbb3723a 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.2/xdb/addons/Monitoring/azuredeploy.json index 28b7989b..b1ff7c79 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index a3c215ee..07d5cbf8 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avhvt/roobf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avhvt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt/roobf/iukoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avhvt/schedules/roobf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/geqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index 7d612f93..1b81b654 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jebgt/kgkfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jebgt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt/kgkfn/vkkwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jebgt/schedules/kgkfn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crdeg/ozysu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crdeg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg/ozysu/xegvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crdeg/schedules/ozysu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icdqx/nlrha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icdqx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx/nlrha/hsixz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icdqx/schedules/nlrha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvngj/ghtlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvngj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj/ghtlm/drqus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvngj/schedules/ghtlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/magsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/magsj/gtzve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/magsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/magsj/gtzve/agmow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/magsj/schedules/gtzve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/naesg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/naesg/vlpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/naesg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/naesg/vlpnu/yqmxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/naesg/schedules/vlpnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enjas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enjas/zcvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enjas')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enjas/zcvad/bddjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enjas/schedules/zcvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akpul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akpul/cwmez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akpul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akpul/cwmez/hnxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akpul/schedules/cwmez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zonfp/txisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zonfp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp/txisw/ojfgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zonfp/schedules/txisw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aplrx/hghlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aplrx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx/hghlb/liutn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aplrx/schedules/hghlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcmbi/cshjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcmbi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi/cshjx/okmve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcmbi/schedules/cshjx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djapv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djapv/ubrve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djapv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djapv/ubrve/kbmtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djapv/schedules/ubrve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmjrm/btyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmjrm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm/btyja/dtnfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmjrm/schedules/btyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmxku/desmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmxku')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku/desmg/piyqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmxku/schedules/desmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/huqqs/badkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/huqqs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs/badkl/zsqtz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/huqqs/schedules/badkl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbeoh/gxbsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbeoh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh/gxbsu/rzafq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbeoh/schedules/gxbsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqkns/iaoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqkns')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns/iaoxk/utomr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqkns/schedules/iaoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emjic/doxbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emjic')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emjic/doxbg/clbed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emjic/schedules/doxbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxwlj/sbzjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxwlj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj/sbzjv/jdwho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxwlj/schedules/sbzjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnjcr/ychkg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnjcr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr/ychkg/keazy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnjcr/schedules/ychkg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbmiv/jegoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbmiv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv/jegoo/pwhao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbmiv/schedules/jegoo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urkyc/abkcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urkyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc/abkcr/lfhvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urkyc/schedules/abkcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzhet/jyxhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzhet')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet/jyxhv/wehyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzhet/schedules/jyxhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leofb/xlchd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leofb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leofb/xlchd/kdnty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leofb/schedules/xlchd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnhrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqork')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuhyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inkwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onslx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twfnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgmvy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/egbuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljsca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/btxfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnypz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcwvz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukwid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojndu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pziha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omlzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfnwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoxmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzoki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/geors')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qegsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebserverfarms.json index bbe11029..3801e7bc 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qfcan/dsaob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qfcan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan/dsaob/mbudw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qfcan/schedules/dsaob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ahfky/tefwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ahfky')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky/tefwu/pefwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ahfky/schedules/tefwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdjvv/xyghm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdjvv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv/xyghm/hvfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdjvv/schedules/xyghm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afvpu/fixki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afvpu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu/fixki/fcoza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afvpu/schedules/fixki')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmxgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngdne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbtbz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebsites.json index 67fad995..a3eb43fe 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syqmf/cmlgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syqmf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf/cmlgx/cuiuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syqmf/schedules/cmlgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hgrne/tlhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hgrne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne/tlhfo/imdtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hgrne/schedules/tlhfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtluj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/redbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/application.json index 1720efc7..fcc72d7a 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/integration.json index 4a8dccb8..d0e9039d 100644 --- a/Sitecore 8.2.2/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.2/xdb/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/README.md b/Sitecore 8.2.2/xm/addons/Monitoring/README.md index e918100e..96d6d022 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.2/xm/addons/Monitoring/README.md @@ -25,7 +25,8 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.2/xm/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertcacheredis.json index 3d3b529a..c958b794 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gymfh/xrxut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gymfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh/xrxut/utgfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gymfh/schedules/xrxut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgdlf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 0f5a382c..713826ad 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rshwz/ctwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rshwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz/ctwpf/wbuhy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rshwz/schedules/ctwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xkhqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index adf3d152..9aaa23f8 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwdxz/yzrjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwdxz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz/yzrjh/yotml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwdxz/schedules/yzrjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atdvu/lvwac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atdvu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu/lvwac/mnqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atdvu/schedules/lvwac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhqgi/bmhpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhqgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi/bmhpz/qcbio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhqgi/schedules/bmhpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pojsl/tuolq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pojsl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl/tuolq/pyoqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pojsl/schedules/tuolq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fykdl/yenwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fykdl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl/yenwo/jsygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fykdl/schedules/yenwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ljcjz/bxgtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ljcjz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz/bxgtj/zrivj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ljcjz/schedules/bxgtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohfsu/empcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohfsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu/empcu/shdrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohfsu/schedules/empcu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eirkt/yynft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eirkt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt/yynft/yuhin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eirkt/schedules/yynft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/brahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/brahc/cxhvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/brahc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/brahc/cxhvq/vwxdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/brahc/schedules/cxhvq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pkfgy/ppock')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pkfgy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy/ppock/danet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pkfgy/schedules/ppock')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqyzl/tmicf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqyzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl/tmicf/cjtqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqyzl/schedules/tmicf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdlbh/qtouk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdlbh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh/qtouk/mgfdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdlbh/schedules/qtouk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzudf/lpdsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzudf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf/lpdsx/zfrmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzudf/schedules/lpdsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gynth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gynth/grfso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gynth')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gynth/grfso/vzymn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gynth/schedules/grfso')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aryck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aryck/wmyuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aryck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aryck/wmyuf/xngiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aryck/schedules/wmyuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qskwe/cpkam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qskwe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe/cpkam/olhfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qskwe/schedules/cpkam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngpds/dquyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds/dquyx/qdhzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngpds/schedules/dquyx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nadue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nadue/ooapy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nadue')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nadue/ooapy/azhsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nadue/schedules/ooapy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/iubcl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odjsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvkoz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnvjo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmeul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqfgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bijzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dntzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyalk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnnij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grteb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rftws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxtdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmvub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxide')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umrse')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcvyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywzlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebserverfarms.json index 81ae01d7..f0db4e63 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsquh/qvzla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsquh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh/qvzla/ydciq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsquh/schedules/qvzla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpgoy/qanpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpgoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy/qanpi/sjayl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpgoy/schedules/qanpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/botiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/botiw/kexpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/botiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/botiw/kexpf/wbulz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/botiw/schedules/kexpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/toohs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/toohs/bqnyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/toohs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/toohs/bqnyg/mjuid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/toohs/schedules/bqnyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/anvmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ounef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miygh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtkhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebsites.json index 07633e2b..f343ab86 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efxhb/qpxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efxhb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb/qpxmu/aoyvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efxhb/schedules/qpxmu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkvcs/qryan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkvcs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs/qryan/ioaud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkvcs/schedules/qryan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/izffw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqtbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/application.json index 4b6fd7cb..3b49909f 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.2/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.2/xm/addons/Monitoring/nested/integration.json index d192d618..94f40a86 100644 --- a/Sitecore 8.2.2/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.2/xm/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/README.md b/Sitecore 8.2.2/xp/addons/Monitoring/README.md index ac2df5e9..58e3f9dc 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.2/xp/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.2/xp/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertcacheredis.json index d00c0912..389a8e39 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwtx/vglac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwtx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx/vglac/qwbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwtx/schedules/vglac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfoey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 0239013b..702f5010 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iejct/hkvxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iejct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct/hkvxp/qvkmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iejct/schedules/hkvxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/krtjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 5e34914f..d621a079 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kiaxm/gicna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kiaxm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm/gicna/balob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kiaxm/schedules/gicna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvsc/fyofk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvsc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc/fyofk/qusih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvsc/schedules/fyofk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pemwj/lbdij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pemwj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj/lbdij/tofqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pemwj/schedules/lbdij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxqui/exfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxqui')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui/exfky/wgsde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxqui/schedules/exfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbmcp/rmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbmcp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp/rmnpu/uvmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbmcp/schedules/rmnpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dysva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dysva/kwclt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dysva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dysva/kwclt/hyfda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dysva/schedules/kwclt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdvqs/gtfjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdvqs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs/gtfjn/awkta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdvqs/schedules/gtfjn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgxza/esdci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgxza')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza/esdci/tdyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgxza/schedules/esdci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oljmf/daixa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oljmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf/daixa/jgtmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oljmf/schedules/daixa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fjgrp/pqsly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fjgrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp/pqsly/ypoex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fjgrp/schedules/pqsly')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbnol/zjhxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbnol')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol/zjhxg/rasjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbnol/schedules/zjhxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dvlza/mgxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dvlza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza/mgxhu/wxicy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dvlza/schedules/mgxhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cejqi/eoqdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cejqi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi/eoqdn/qovcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cejqi/schedules/eoqdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqysj/ztevf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqysj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj/ztevf/yqgaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqysj/schedules/ztevf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybffx/fzlqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybffx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx/fzlqg/iqnbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybffx/schedules/fzlqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wpbck/pldmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wpbck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck/pldmc/zexiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wpbck/schedules/pldmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsilf/fbmjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsilf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf/fbmjz/escgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsilf/schedules/fbmjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqijv/ulbah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqijv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv/ulbah/bcfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqijv/schedules/ulbah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qavug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qavug/pzuce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qavug')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qavug/pzuce/hcyua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qavug/schedules/pzuce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rqwyd/clfvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rqwyd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd/clfvs/arlzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rqwyd/schedules/clfvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxajo/ubkbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxajo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo/ubkbp/fgtei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxajo/schedules/ubkbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqrja/jkmxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqrja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja/jkmxy/xutgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqrja/schedules/jkmxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jumzt/mcbdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jumzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt/mcbdn/kbjsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jumzt/schedules/mcbdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvpip/earuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvpip')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip/earuz/ksacc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvpip/schedules/earuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/alnif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezike')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgtxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htdef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlusf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itcfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htcre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfxeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmlkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cyqqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkvmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbowt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnvzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfzxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxgzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wstfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/joqog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alyix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngcot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsgrp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shlqo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebserverfarms.json index 0bde498a..b0106348 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaqsl/ymrgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaqsl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl/ymrgl/kjnor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaqsl/schedules/ymrgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlydv/wfzap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlydv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv/wfzap/wgryj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlydv/schedules/wfzap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ordsw/pbmeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ordsw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw/pbmeo/kvunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ordsw/schedules/pbmeo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flmgc/ccyez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flmgc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc/ccyez/bcgsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flmgc/schedules/ccyez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdkzv/dqzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdkzv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv/dqzsv/jvxpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdkzv/schedules/dqzsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uluta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uluta/mgngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uluta')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uluta/mgngs/ncjvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uluta/schedules/mgngs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkvjd/aogmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkvjd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd/aogmv/ncodu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkvjd/schedules/aogmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlncq/opcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlncq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq/opcqn/befwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlncq/schedules/opcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/odejq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnhta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxear')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knctm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/guvie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akhwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpnbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajmxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebsites.json index eb248bae..67f7376d 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drkae/ujthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drkae')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae/ujthu/eodyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drkae/schedules/ujthu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kipme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kipme/huqpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kipme')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kipme/huqpi/npwij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kipme/schedules/huqpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvjwa/ithlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvjwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa/ithlv/adldo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvjwa/schedules/ithlv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dobjp/livjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dobjp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp/livjo/wfyyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dobjp/schedules/livjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdmeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/worwt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiabh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/application.json index d19e1ab6..d7fdd163 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/application.json @@ -1,1369 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.2/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.2/xp/addons/Monitoring/nested/integration.json index cb0b453e..c0bc8542 100644 --- a/Sitecore 8.2.2/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.2/xp/addons/Monitoring/nested/integration.json @@ -1,237 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/README.md b/Sitecore 8.2.3/xdb/addons/Monitoring/README.md index c497ccc8..cbb3723a 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.3/xdb/addons/Monitoring/azuredeploy.json index 28b7989b..b1ff7c79 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index a3c215ee..07d5cbf8 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avhvt/roobf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avhvt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt/roobf/iukoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avhvt/schedules/roobf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/geqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index 7d612f93..1b81b654 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jebgt/kgkfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jebgt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt/kgkfn/vkkwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jebgt/schedules/kgkfn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crdeg/ozysu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crdeg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg/ozysu/xegvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crdeg/schedules/ozysu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icdqx/nlrha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icdqx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx/nlrha/hsixz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icdqx/schedules/nlrha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvngj/ghtlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvngj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj/ghtlm/drqus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvngj/schedules/ghtlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/magsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/magsj/gtzve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/magsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/magsj/gtzve/agmow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/magsj/schedules/gtzve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/naesg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/naesg/vlpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/naesg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/naesg/vlpnu/yqmxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/naesg/schedules/vlpnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enjas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enjas/zcvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enjas')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enjas/zcvad/bddjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enjas/schedules/zcvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akpul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akpul/cwmez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akpul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akpul/cwmez/hnxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akpul/schedules/cwmez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zonfp/txisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zonfp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp/txisw/ojfgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zonfp/schedules/txisw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aplrx/hghlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aplrx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx/hghlb/liutn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aplrx/schedules/hghlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcmbi/cshjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcmbi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi/cshjx/okmve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcmbi/schedules/cshjx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djapv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djapv/ubrve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djapv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djapv/ubrve/kbmtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djapv/schedules/ubrve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmjrm/btyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmjrm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm/btyja/dtnfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmjrm/schedules/btyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmxku/desmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmxku')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku/desmg/piyqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmxku/schedules/desmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/huqqs/badkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/huqqs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs/badkl/zsqtz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/huqqs/schedules/badkl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbeoh/gxbsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbeoh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh/gxbsu/rzafq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbeoh/schedules/gxbsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqkns/iaoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqkns')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns/iaoxk/utomr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqkns/schedules/iaoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emjic/doxbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emjic')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emjic/doxbg/clbed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emjic/schedules/doxbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxwlj/sbzjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxwlj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj/sbzjv/jdwho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxwlj/schedules/sbzjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnjcr/ychkg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnjcr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr/ychkg/keazy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnjcr/schedules/ychkg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbmiv/jegoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbmiv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv/jegoo/pwhao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbmiv/schedules/jegoo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urkyc/abkcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urkyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc/abkcr/lfhvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urkyc/schedules/abkcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzhet/jyxhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzhet')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet/jyxhv/wehyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzhet/schedules/jyxhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leofb/xlchd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leofb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leofb/xlchd/kdnty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leofb/schedules/xlchd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnhrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqork')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuhyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inkwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onslx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twfnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgmvy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/egbuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljsca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/btxfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnypz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcwvz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukwid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojndu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pziha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omlzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfnwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoxmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzoki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/geors')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qegsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebserverfarms.json index bbe11029..3801e7bc 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qfcan/dsaob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qfcan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan/dsaob/mbudw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qfcan/schedules/dsaob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ahfky/tefwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ahfky')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky/tefwu/pefwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ahfky/schedules/tefwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdjvv/xyghm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdjvv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv/xyghm/hvfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdjvv/schedules/xyghm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afvpu/fixki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afvpu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu/fixki/fcoza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afvpu/schedules/fixki')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmxgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngdne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbtbz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebsites.json index 67fad995..a3eb43fe 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syqmf/cmlgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syqmf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf/cmlgx/cuiuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syqmf/schedules/cmlgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hgrne/tlhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hgrne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne/tlhfo/imdtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hgrne/schedules/tlhfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtluj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/redbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/application.json index 1720efc7..fcc72d7a 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/integration.json index 4a8dccb8..d0e9039d 100644 --- a/Sitecore 8.2.3/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.3/xdb/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/README.md b/Sitecore 8.2.3/xm/addons/Monitoring/README.md index e918100e..96d6d022 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.3/xm/addons/Monitoring/README.md @@ -25,7 +25,8 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.3/xm/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertcacheredis.json index 3d3b529a..c958b794 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gymfh/xrxut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gymfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh/xrxut/utgfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gymfh/schedules/xrxut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgdlf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 0f5a382c..713826ad 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rshwz/ctwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rshwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz/ctwpf/wbuhy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rshwz/schedules/ctwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xkhqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index adf3d152..9aaa23f8 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwdxz/yzrjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwdxz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz/yzrjh/yotml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwdxz/schedules/yzrjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atdvu/lvwac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atdvu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu/lvwac/mnqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atdvu/schedules/lvwac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhqgi/bmhpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhqgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi/bmhpz/qcbio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhqgi/schedules/bmhpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pojsl/tuolq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pojsl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl/tuolq/pyoqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pojsl/schedules/tuolq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fykdl/yenwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fykdl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl/yenwo/jsygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fykdl/schedules/yenwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ljcjz/bxgtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ljcjz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz/bxgtj/zrivj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ljcjz/schedules/bxgtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohfsu/empcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohfsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu/empcu/shdrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohfsu/schedules/empcu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eirkt/yynft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eirkt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt/yynft/yuhin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eirkt/schedules/yynft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/brahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/brahc/cxhvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/brahc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/brahc/cxhvq/vwxdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/brahc/schedules/cxhvq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pkfgy/ppock')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pkfgy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy/ppock/danet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pkfgy/schedules/ppock')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqyzl/tmicf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqyzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl/tmicf/cjtqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqyzl/schedules/tmicf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdlbh/qtouk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdlbh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh/qtouk/mgfdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdlbh/schedules/qtouk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzudf/lpdsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzudf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf/lpdsx/zfrmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzudf/schedules/lpdsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gynth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gynth/grfso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gynth')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gynth/grfso/vzymn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gynth/schedules/grfso')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aryck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aryck/wmyuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aryck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aryck/wmyuf/xngiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aryck/schedules/wmyuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qskwe/cpkam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qskwe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe/cpkam/olhfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qskwe/schedules/cpkam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngpds/dquyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds/dquyx/qdhzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngpds/schedules/dquyx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nadue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nadue/ooapy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nadue')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nadue/ooapy/azhsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nadue/schedules/ooapy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/iubcl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odjsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvkoz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnvjo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmeul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqfgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bijzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dntzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyalk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnnij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grteb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rftws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxtdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmvub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxide')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umrse')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcvyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywzlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebserverfarms.json index 81ae01d7..f0db4e63 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsquh/qvzla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsquh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh/qvzla/ydciq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsquh/schedules/qvzla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpgoy/qanpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpgoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy/qanpi/sjayl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpgoy/schedules/qanpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/botiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/botiw/kexpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/botiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/botiw/kexpf/wbulz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/botiw/schedules/kexpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/toohs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/toohs/bqnyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/toohs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/toohs/bqnyg/mjuid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/toohs/schedules/bqnyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/anvmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ounef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miygh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtkhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebsites.json index 07633e2b..f343ab86 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efxhb/qpxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efxhb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb/qpxmu/aoyvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efxhb/schedules/qpxmu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkvcs/qryan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkvcs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs/qryan/ioaud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkvcs/schedules/qryan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/izffw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqtbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/application.json index 4b6fd7cb..3b49909f 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.3/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.3/xm/addons/Monitoring/nested/integration.json index d192d618..94f40a86 100644 --- a/Sitecore 8.2.3/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.3/xm/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/README.md b/Sitecore 8.2.3/xp/addons/Monitoring/README.md index ac2df5e9..58e3f9dc 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.3/xp/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.3/xp/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertcacheredis.json index d00c0912..389a8e39 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwtx/vglac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwtx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx/vglac/qwbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwtx/schedules/vglac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfoey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 0239013b..702f5010 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iejct/hkvxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iejct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct/hkvxp/qvkmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iejct/schedules/hkvxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/krtjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 5e34914f..d621a079 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kiaxm/gicna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kiaxm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm/gicna/balob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kiaxm/schedules/gicna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvsc/fyofk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvsc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc/fyofk/qusih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvsc/schedules/fyofk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pemwj/lbdij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pemwj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj/lbdij/tofqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pemwj/schedules/lbdij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxqui/exfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxqui')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui/exfky/wgsde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxqui/schedules/exfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbmcp/rmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbmcp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp/rmnpu/uvmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbmcp/schedules/rmnpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dysva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dysva/kwclt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dysva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dysva/kwclt/hyfda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dysva/schedules/kwclt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdvqs/gtfjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdvqs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs/gtfjn/awkta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdvqs/schedules/gtfjn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgxza/esdci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgxza')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza/esdci/tdyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgxza/schedules/esdci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oljmf/daixa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oljmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf/daixa/jgtmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oljmf/schedules/daixa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fjgrp/pqsly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fjgrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp/pqsly/ypoex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fjgrp/schedules/pqsly')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbnol/zjhxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbnol')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol/zjhxg/rasjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbnol/schedules/zjhxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dvlza/mgxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dvlza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza/mgxhu/wxicy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dvlza/schedules/mgxhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cejqi/eoqdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cejqi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi/eoqdn/qovcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cejqi/schedules/eoqdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqysj/ztevf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqysj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj/ztevf/yqgaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqysj/schedules/ztevf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybffx/fzlqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybffx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx/fzlqg/iqnbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybffx/schedules/fzlqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wpbck/pldmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wpbck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck/pldmc/zexiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wpbck/schedules/pldmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsilf/fbmjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsilf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf/fbmjz/escgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsilf/schedules/fbmjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqijv/ulbah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqijv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv/ulbah/bcfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqijv/schedules/ulbah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qavug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qavug/pzuce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qavug')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qavug/pzuce/hcyua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qavug/schedules/pzuce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rqwyd/clfvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rqwyd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd/clfvs/arlzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rqwyd/schedules/clfvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxajo/ubkbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxajo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo/ubkbp/fgtei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxajo/schedules/ubkbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqrja/jkmxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqrja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja/jkmxy/xutgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqrja/schedules/jkmxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jumzt/mcbdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jumzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt/mcbdn/kbjsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jumzt/schedules/mcbdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvpip/earuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvpip')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip/earuz/ksacc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvpip/schedules/earuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/alnif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezike')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgtxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htdef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlusf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itcfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htcre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfxeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmlkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cyqqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkvmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbowt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnvzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfzxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxgzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wstfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/joqog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alyix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngcot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsgrp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shlqo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebserverfarms.json index 0bde498a..b0106348 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaqsl/ymrgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaqsl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl/ymrgl/kjnor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaqsl/schedules/ymrgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlydv/wfzap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlydv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv/wfzap/wgryj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlydv/schedules/wfzap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ordsw/pbmeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ordsw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw/pbmeo/kvunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ordsw/schedules/pbmeo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flmgc/ccyez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flmgc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc/ccyez/bcgsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flmgc/schedules/ccyez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdkzv/dqzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdkzv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv/dqzsv/jvxpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdkzv/schedules/dqzsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uluta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uluta/mgngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uluta')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uluta/mgngs/ncjvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uluta/schedules/mgngs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkvjd/aogmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkvjd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd/aogmv/ncodu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkvjd/schedules/aogmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlncq/opcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlncq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq/opcqn/befwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlncq/schedules/opcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/odejq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnhta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxear')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knctm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/guvie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akhwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpnbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajmxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebsites.json index eb248bae..67f7376d 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drkae/ujthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drkae')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae/ujthu/eodyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drkae/schedules/ujthu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kipme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kipme/huqpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kipme')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kipme/huqpi/npwij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kipme/schedules/huqpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvjwa/ithlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvjwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa/ithlv/adldo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvjwa/schedules/ithlv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dobjp/livjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dobjp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp/livjo/wfyyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dobjp/schedules/livjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdmeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/worwt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiabh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/application.json index d19e1ab6..d7fdd163 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/application.json @@ -1,1369 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.3/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.3/xp/addons/Monitoring/nested/integration.json index cb0b453e..c0bc8542 100644 --- a/Sitecore 8.2.3/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.3/xp/addons/Monitoring/nested/integration.json @@ -1,237 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/README.md b/Sitecore 8.2.4/xdb/addons/Monitoring/README.md index c497ccc8..cbb3723a 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.4/xdb/addons/Monitoring/azuredeploy.json index 28b7989b..b1ff7c79 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index a3c215ee..07d5cbf8 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avhvt/roobf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avhvt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt/roobf/iukoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avhvt/schedules/roobf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/geqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index 7d612f93..1b81b654 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jebgt/kgkfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jebgt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt/kgkfn/vkkwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jebgt/schedules/kgkfn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crdeg/ozysu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crdeg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg/ozysu/xegvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crdeg/schedules/ozysu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icdqx/nlrha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icdqx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx/nlrha/hsixz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icdqx/schedules/nlrha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvngj/ghtlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvngj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj/ghtlm/drqus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvngj/schedules/ghtlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/magsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/magsj/gtzve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/magsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/magsj/gtzve/agmow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/magsj/schedules/gtzve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/naesg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/naesg/vlpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/naesg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/naesg/vlpnu/yqmxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/naesg/schedules/vlpnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enjas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enjas/zcvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enjas')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enjas/zcvad/bddjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enjas/schedules/zcvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akpul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akpul/cwmez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akpul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akpul/cwmez/hnxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akpul/schedules/cwmez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zonfp/txisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zonfp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp/txisw/ojfgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zonfp/schedules/txisw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aplrx/hghlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aplrx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx/hghlb/liutn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aplrx/schedules/hghlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcmbi/cshjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcmbi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi/cshjx/okmve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcmbi/schedules/cshjx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djapv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djapv/ubrve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djapv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djapv/ubrve/kbmtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djapv/schedules/ubrve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmjrm/btyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmjrm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm/btyja/dtnfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmjrm/schedules/btyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmxku/desmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmxku')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku/desmg/piyqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmxku/schedules/desmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/huqqs/badkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/huqqs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs/badkl/zsqtz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/huqqs/schedules/badkl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbeoh/gxbsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbeoh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh/gxbsu/rzafq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbeoh/schedules/gxbsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqkns/iaoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqkns')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns/iaoxk/utomr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqkns/schedules/iaoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emjic/doxbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emjic')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emjic/doxbg/clbed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emjic/schedules/doxbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxwlj/sbzjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxwlj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj/sbzjv/jdwho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxwlj/schedules/sbzjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnjcr/ychkg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnjcr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr/ychkg/keazy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnjcr/schedules/ychkg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbmiv/jegoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbmiv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv/jegoo/pwhao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbmiv/schedules/jegoo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urkyc/abkcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urkyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc/abkcr/lfhvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urkyc/schedules/abkcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzhet/jyxhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzhet')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet/jyxhv/wehyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzhet/schedules/jyxhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leofb/xlchd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leofb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leofb/xlchd/kdnty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leofb/schedules/xlchd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnhrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqork')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuhyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inkwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onslx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twfnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgmvy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/egbuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljsca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/btxfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnypz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcwvz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukwid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojndu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pziha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omlzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfnwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoxmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzoki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/geors')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qegsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebserverfarms.json index bbe11029..3801e7bc 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qfcan/dsaob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qfcan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan/dsaob/mbudw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qfcan/schedules/dsaob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ahfky/tefwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ahfky')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky/tefwu/pefwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ahfky/schedules/tefwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdjvv/xyghm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdjvv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv/xyghm/hvfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdjvv/schedules/xyghm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afvpu/fixki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afvpu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu/fixki/fcoza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afvpu/schedules/fixki')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmxgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngdne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbtbz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebsites.json index 67fad995..a3eb43fe 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syqmf/cmlgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syqmf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf/cmlgx/cuiuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syqmf/schedules/cmlgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hgrne/tlhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hgrne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne/tlhfo/imdtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hgrne/schedules/tlhfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtluj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/redbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/application.json index 1720efc7..fcc72d7a 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/integration.json index 4a8dccb8..d0e9039d 100644 --- a/Sitecore 8.2.4/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.4/xdb/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/README.md b/Sitecore 8.2.4/xm/addons/Monitoring/README.md index e918100e..96d6d022 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.4/xm/addons/Monitoring/README.md @@ -25,7 +25,8 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.4/xm/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertcacheredis.json index 3d3b529a..c958b794 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gymfh/xrxut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gymfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh/xrxut/utgfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gymfh/schedules/xrxut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgdlf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 0f5a382c..713826ad 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rshwz/ctwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rshwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz/ctwpf/wbuhy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rshwz/schedules/ctwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xkhqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index adf3d152..9aaa23f8 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwdxz/yzrjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwdxz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz/yzrjh/yotml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwdxz/schedules/yzrjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atdvu/lvwac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atdvu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu/lvwac/mnqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atdvu/schedules/lvwac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhqgi/bmhpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhqgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi/bmhpz/qcbio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhqgi/schedules/bmhpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pojsl/tuolq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pojsl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl/tuolq/pyoqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pojsl/schedules/tuolq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fykdl/yenwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fykdl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl/yenwo/jsygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fykdl/schedules/yenwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ljcjz/bxgtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ljcjz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz/bxgtj/zrivj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ljcjz/schedules/bxgtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohfsu/empcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohfsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu/empcu/shdrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohfsu/schedules/empcu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eirkt/yynft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eirkt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt/yynft/yuhin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eirkt/schedules/yynft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/brahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/brahc/cxhvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/brahc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/brahc/cxhvq/vwxdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/brahc/schedules/cxhvq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pkfgy/ppock')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pkfgy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy/ppock/danet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pkfgy/schedules/ppock')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqyzl/tmicf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqyzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl/tmicf/cjtqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqyzl/schedules/tmicf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdlbh/qtouk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdlbh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh/qtouk/mgfdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdlbh/schedules/qtouk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzudf/lpdsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzudf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf/lpdsx/zfrmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzudf/schedules/lpdsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gynth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gynth/grfso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gynth')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gynth/grfso/vzymn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gynth/schedules/grfso')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aryck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aryck/wmyuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aryck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aryck/wmyuf/xngiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aryck/schedules/wmyuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qskwe/cpkam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qskwe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe/cpkam/olhfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qskwe/schedules/cpkam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngpds/dquyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds/dquyx/qdhzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngpds/schedules/dquyx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nadue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nadue/ooapy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nadue')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nadue/ooapy/azhsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nadue/schedules/ooapy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/iubcl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odjsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvkoz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnvjo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmeul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqfgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bijzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dntzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyalk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnnij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grteb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rftws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxtdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmvub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxide')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umrse')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcvyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywzlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebserverfarms.json index 81ae01d7..f0db4e63 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsquh/qvzla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsquh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh/qvzla/ydciq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsquh/schedules/qvzla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpgoy/qanpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpgoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy/qanpi/sjayl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpgoy/schedules/qanpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/botiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/botiw/kexpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/botiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/botiw/kexpf/wbulz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/botiw/schedules/kexpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/toohs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/toohs/bqnyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/toohs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/toohs/bqnyg/mjuid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/toohs/schedules/bqnyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/anvmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ounef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miygh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtkhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebsites.json index 07633e2b..f343ab86 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efxhb/qpxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efxhb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb/qpxmu/aoyvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efxhb/schedules/qpxmu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkvcs/qryan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkvcs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs/qryan/ioaud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkvcs/schedules/qryan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/izffw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqtbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/application.json index 4b6fd7cb..3b49909f 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.4/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.4/xm/addons/Monitoring/nested/integration.json index d192d618..94f40a86 100644 --- a/Sitecore 8.2.4/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.4/xm/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/README.md b/Sitecore 8.2.4/xp/addons/Monitoring/README.md index ac2df5e9..58e3f9dc 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.4/xp/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.4/xp/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertcacheredis.json index d00c0912..389a8e39 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwtx/vglac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwtx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx/vglac/qwbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwtx/schedules/vglac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfoey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 0239013b..702f5010 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iejct/hkvxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iejct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct/hkvxp/qvkmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iejct/schedules/hkvxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/krtjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 5e34914f..d621a079 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kiaxm/gicna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kiaxm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm/gicna/balob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kiaxm/schedules/gicna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvsc/fyofk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvsc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc/fyofk/qusih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvsc/schedules/fyofk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pemwj/lbdij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pemwj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj/lbdij/tofqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pemwj/schedules/lbdij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxqui/exfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxqui')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui/exfky/wgsde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxqui/schedules/exfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbmcp/rmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbmcp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp/rmnpu/uvmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbmcp/schedules/rmnpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dysva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dysva/kwclt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dysva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dysva/kwclt/hyfda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dysva/schedules/kwclt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdvqs/gtfjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdvqs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs/gtfjn/awkta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdvqs/schedules/gtfjn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgxza/esdci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgxza')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza/esdci/tdyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgxza/schedules/esdci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oljmf/daixa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oljmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf/daixa/jgtmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oljmf/schedules/daixa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fjgrp/pqsly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fjgrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp/pqsly/ypoex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fjgrp/schedules/pqsly')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbnol/zjhxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbnol')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol/zjhxg/rasjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbnol/schedules/zjhxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dvlza/mgxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dvlza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza/mgxhu/wxicy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dvlza/schedules/mgxhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cejqi/eoqdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cejqi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi/eoqdn/qovcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cejqi/schedules/eoqdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqysj/ztevf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqysj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj/ztevf/yqgaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqysj/schedules/ztevf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybffx/fzlqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybffx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx/fzlqg/iqnbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybffx/schedules/fzlqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wpbck/pldmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wpbck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck/pldmc/zexiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wpbck/schedules/pldmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsilf/fbmjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsilf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf/fbmjz/escgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsilf/schedules/fbmjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqijv/ulbah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqijv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv/ulbah/bcfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqijv/schedules/ulbah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qavug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qavug/pzuce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qavug')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qavug/pzuce/hcyua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qavug/schedules/pzuce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rqwyd/clfvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rqwyd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd/clfvs/arlzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rqwyd/schedules/clfvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxajo/ubkbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxajo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo/ubkbp/fgtei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxajo/schedules/ubkbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqrja/jkmxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqrja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja/jkmxy/xutgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqrja/schedules/jkmxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jumzt/mcbdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jumzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt/mcbdn/kbjsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jumzt/schedules/mcbdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvpip/earuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvpip')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip/earuz/ksacc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvpip/schedules/earuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/alnif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezike')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgtxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htdef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlusf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itcfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htcre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfxeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmlkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cyqqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkvmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbowt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnvzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfzxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxgzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wstfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/joqog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alyix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngcot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsgrp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shlqo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebserverfarms.json index 0bde498a..b0106348 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaqsl/ymrgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaqsl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl/ymrgl/kjnor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaqsl/schedules/ymrgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlydv/wfzap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlydv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv/wfzap/wgryj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlydv/schedules/wfzap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ordsw/pbmeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ordsw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw/pbmeo/kvunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ordsw/schedules/pbmeo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flmgc/ccyez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flmgc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc/ccyez/bcgsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flmgc/schedules/ccyez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdkzv/dqzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdkzv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv/dqzsv/jvxpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdkzv/schedules/dqzsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uluta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uluta/mgngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uluta')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uluta/mgngs/ncjvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uluta/schedules/mgngs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkvjd/aogmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkvjd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd/aogmv/ncodu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkvjd/schedules/aogmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlncq/opcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlncq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq/opcqn/befwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlncq/schedules/opcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/odejq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnhta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxear')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knctm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/guvie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akhwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpnbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajmxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebsites.json index eb248bae..67f7376d 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drkae/ujthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drkae')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae/ujthu/eodyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drkae/schedules/ujthu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kipme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kipme/huqpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kipme')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kipme/huqpi/npwij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kipme/schedules/huqpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvjwa/ithlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvjwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa/ithlv/adldo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvjwa/schedules/ithlv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dobjp/livjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dobjp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp/livjo/wfyyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dobjp/schedules/livjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdmeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/worwt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiabh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/application.json index d19e1ab6..d7fdd163 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/application.json @@ -1,1369 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.4/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.4/xp/addons/Monitoring/nested/integration.json index cb0b453e..c0bc8542 100644 --- a/Sitecore 8.2.4/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.4/xp/addons/Monitoring/nested/integration.json @@ -1,237 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/README.md b/Sitecore 8.2.5/xdb/addons/Monitoring/README.md index c497ccc8..cbb3723a 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.5/xdb/addons/Monitoring/azuredeploy.json index 28b7989b..b1ff7c79 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index a3c215ee..07d5cbf8 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avhvt/roobf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avhvt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt/roobf/iukoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avhvt/schedules/roobf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/geqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index 7d612f93..1b81b654 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jebgt/kgkfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jebgt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt/kgkfn/vkkwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jebgt/schedules/kgkfn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crdeg/ozysu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crdeg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg/ozysu/xegvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crdeg/schedules/ozysu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icdqx/nlrha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icdqx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx/nlrha/hsixz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icdqx/schedules/nlrha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvngj/ghtlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvngj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj/ghtlm/drqus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvngj/schedules/ghtlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/magsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/magsj/gtzve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/magsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/magsj/gtzve/agmow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/magsj/schedules/gtzve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/naesg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/naesg/vlpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/naesg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/naesg/vlpnu/yqmxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/naesg/schedules/vlpnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enjas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enjas/zcvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enjas')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enjas/zcvad/bddjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enjas/schedules/zcvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akpul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akpul/cwmez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akpul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akpul/cwmez/hnxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akpul/schedules/cwmez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zonfp/txisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zonfp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp/txisw/ojfgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zonfp/schedules/txisw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aplrx/hghlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aplrx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx/hghlb/liutn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aplrx/schedules/hghlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcmbi/cshjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcmbi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi/cshjx/okmve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcmbi/schedules/cshjx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djapv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djapv/ubrve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djapv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djapv/ubrve/kbmtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djapv/schedules/ubrve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmjrm/btyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmjrm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm/btyja/dtnfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmjrm/schedules/btyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmxku/desmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmxku')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku/desmg/piyqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmxku/schedules/desmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/huqqs/badkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/huqqs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs/badkl/zsqtz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/huqqs/schedules/badkl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbeoh/gxbsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbeoh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh/gxbsu/rzafq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbeoh/schedules/gxbsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqkns/iaoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqkns')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns/iaoxk/utomr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqkns/schedules/iaoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emjic/doxbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emjic')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emjic/doxbg/clbed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emjic/schedules/doxbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxwlj/sbzjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxwlj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj/sbzjv/jdwho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxwlj/schedules/sbzjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnjcr/ychkg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnjcr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr/ychkg/keazy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnjcr/schedules/ychkg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbmiv/jegoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbmiv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv/jegoo/pwhao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbmiv/schedules/jegoo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urkyc/abkcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urkyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc/abkcr/lfhvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urkyc/schedules/abkcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzhet/jyxhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzhet')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet/jyxhv/wehyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzhet/schedules/jyxhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leofb/xlchd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leofb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leofb/xlchd/kdnty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leofb/schedules/xlchd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnhrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqork')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuhyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inkwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onslx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twfnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgmvy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/egbuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljsca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/btxfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnypz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcwvz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukwid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojndu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pziha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omlzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfnwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoxmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzoki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/geors')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qegsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebserverfarms.json index bbe11029..3801e7bc 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qfcan/dsaob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qfcan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan/dsaob/mbudw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qfcan/schedules/dsaob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ahfky/tefwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ahfky')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky/tefwu/pefwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ahfky/schedules/tefwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdjvv/xyghm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdjvv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv/xyghm/hvfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdjvv/schedules/xyghm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afvpu/fixki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afvpu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu/fixki/fcoza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afvpu/schedules/fixki')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmxgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngdne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbtbz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebsites.json index 67fad995..a3eb43fe 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syqmf/cmlgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syqmf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf/cmlgx/cuiuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syqmf/schedules/cmlgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hgrne/tlhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hgrne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne/tlhfo/imdtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hgrne/schedules/tlhfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtluj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/redbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/application.json index 1720efc7..fcc72d7a 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/integration.json index 4a8dccb8..d0e9039d 100644 --- a/Sitecore 8.2.5/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.5/xdb/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/README.md b/Sitecore 8.2.5/xm/addons/Monitoring/README.md index e918100e..96d6d022 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.5/xm/addons/Monitoring/README.md @@ -25,7 +25,8 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.5/xm/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertcacheredis.json index 3d3b529a..c958b794 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gymfh/xrxut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gymfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh/xrxut/utgfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gymfh/schedules/xrxut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgdlf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 0f5a382c..713826ad 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rshwz/ctwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rshwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz/ctwpf/wbuhy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rshwz/schedules/ctwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xkhqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index adf3d152..9aaa23f8 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwdxz/yzrjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwdxz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz/yzrjh/yotml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwdxz/schedules/yzrjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atdvu/lvwac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atdvu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu/lvwac/mnqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atdvu/schedules/lvwac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhqgi/bmhpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhqgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi/bmhpz/qcbio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhqgi/schedules/bmhpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pojsl/tuolq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pojsl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl/tuolq/pyoqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pojsl/schedules/tuolq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fykdl/yenwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fykdl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl/yenwo/jsygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fykdl/schedules/yenwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ljcjz/bxgtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ljcjz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz/bxgtj/zrivj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ljcjz/schedules/bxgtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohfsu/empcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohfsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu/empcu/shdrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohfsu/schedules/empcu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eirkt/yynft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eirkt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt/yynft/yuhin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eirkt/schedules/yynft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/brahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/brahc/cxhvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/brahc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/brahc/cxhvq/vwxdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/brahc/schedules/cxhvq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pkfgy/ppock')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pkfgy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy/ppock/danet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pkfgy/schedules/ppock')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqyzl/tmicf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqyzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl/tmicf/cjtqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqyzl/schedules/tmicf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdlbh/qtouk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdlbh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh/qtouk/mgfdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdlbh/schedules/qtouk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzudf/lpdsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzudf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf/lpdsx/zfrmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzudf/schedules/lpdsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gynth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gynth/grfso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gynth')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gynth/grfso/vzymn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gynth/schedules/grfso')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aryck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aryck/wmyuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aryck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aryck/wmyuf/xngiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aryck/schedules/wmyuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qskwe/cpkam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qskwe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe/cpkam/olhfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qskwe/schedules/cpkam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngpds/dquyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds/dquyx/qdhzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngpds/schedules/dquyx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nadue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nadue/ooapy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nadue')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nadue/ooapy/azhsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nadue/schedules/ooapy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/iubcl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odjsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvkoz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnvjo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmeul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqfgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bijzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dntzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyalk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnnij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grteb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rftws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxtdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmvub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxide')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umrse')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcvyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywzlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebserverfarms.json index 81ae01d7..f0db4e63 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsquh/qvzla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsquh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh/qvzla/ydciq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsquh/schedules/qvzla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpgoy/qanpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpgoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy/qanpi/sjayl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpgoy/schedules/qanpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/botiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/botiw/kexpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/botiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/botiw/kexpf/wbulz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/botiw/schedules/kexpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/toohs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/toohs/bqnyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/toohs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/toohs/bqnyg/mjuid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/toohs/schedules/bqnyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/anvmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ounef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miygh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtkhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebsites.json index 07633e2b..f343ab86 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efxhb/qpxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efxhb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb/qpxmu/aoyvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efxhb/schedules/qpxmu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkvcs/qryan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkvcs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs/qryan/ioaud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkvcs/schedules/qryan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/izffw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqtbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/application.json index 4b6fd7cb..3b49909f 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.5/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.5/xm/addons/Monitoring/nested/integration.json index d192d618..94f40a86 100644 --- a/Sitecore 8.2.5/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.5/xm/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/README.md b/Sitecore 8.2.5/xp/addons/Monitoring/README.md index ac2df5e9..58e3f9dc 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.5/xp/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.5/xp/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertcacheredis.json index d00c0912..389a8e39 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwtx/vglac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwtx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx/vglac/qwbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwtx/schedules/vglac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfoey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 0239013b..702f5010 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iejct/hkvxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iejct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct/hkvxp/qvkmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iejct/schedules/hkvxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/krtjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 5e34914f..d621a079 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kiaxm/gicna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kiaxm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm/gicna/balob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kiaxm/schedules/gicna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvsc/fyofk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvsc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc/fyofk/qusih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvsc/schedules/fyofk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pemwj/lbdij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pemwj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj/lbdij/tofqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pemwj/schedules/lbdij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxqui/exfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxqui')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui/exfky/wgsde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxqui/schedules/exfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbmcp/rmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbmcp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp/rmnpu/uvmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbmcp/schedules/rmnpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dysva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dysva/kwclt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dysva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dysva/kwclt/hyfda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dysva/schedules/kwclt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdvqs/gtfjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdvqs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs/gtfjn/awkta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdvqs/schedules/gtfjn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgxza/esdci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgxza')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza/esdci/tdyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgxza/schedules/esdci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oljmf/daixa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oljmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf/daixa/jgtmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oljmf/schedules/daixa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fjgrp/pqsly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fjgrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp/pqsly/ypoex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fjgrp/schedules/pqsly')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbnol/zjhxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbnol')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol/zjhxg/rasjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbnol/schedules/zjhxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dvlza/mgxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dvlza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza/mgxhu/wxicy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dvlza/schedules/mgxhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cejqi/eoqdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cejqi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi/eoqdn/qovcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cejqi/schedules/eoqdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqysj/ztevf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqysj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj/ztevf/yqgaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqysj/schedules/ztevf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybffx/fzlqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybffx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx/fzlqg/iqnbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybffx/schedules/fzlqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wpbck/pldmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wpbck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck/pldmc/zexiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wpbck/schedules/pldmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsilf/fbmjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsilf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf/fbmjz/escgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsilf/schedules/fbmjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqijv/ulbah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqijv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv/ulbah/bcfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqijv/schedules/ulbah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qavug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qavug/pzuce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qavug')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qavug/pzuce/hcyua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qavug/schedules/pzuce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rqwyd/clfvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rqwyd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd/clfvs/arlzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rqwyd/schedules/clfvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxajo/ubkbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxajo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo/ubkbp/fgtei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxajo/schedules/ubkbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqrja/jkmxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqrja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja/jkmxy/xutgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqrja/schedules/jkmxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jumzt/mcbdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jumzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt/mcbdn/kbjsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jumzt/schedules/mcbdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvpip/earuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvpip')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip/earuz/ksacc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvpip/schedules/earuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/alnif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezike')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgtxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htdef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlusf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itcfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htcre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfxeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmlkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cyqqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkvmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbowt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnvzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfzxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxgzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wstfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/joqog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alyix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngcot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsgrp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shlqo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebserverfarms.json index 0bde498a..b0106348 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaqsl/ymrgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaqsl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl/ymrgl/kjnor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaqsl/schedules/ymrgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlydv/wfzap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlydv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv/wfzap/wgryj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlydv/schedules/wfzap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ordsw/pbmeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ordsw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw/pbmeo/kvunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ordsw/schedules/pbmeo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flmgc/ccyez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flmgc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc/ccyez/bcgsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flmgc/schedules/ccyez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdkzv/dqzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdkzv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv/dqzsv/jvxpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdkzv/schedules/dqzsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uluta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uluta/mgngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uluta')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uluta/mgngs/ncjvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uluta/schedules/mgngs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkvjd/aogmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkvjd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd/aogmv/ncodu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkvjd/schedules/aogmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlncq/opcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlncq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq/opcqn/befwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlncq/schedules/opcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/odejq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnhta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxear')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knctm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/guvie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akhwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpnbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajmxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebsites.json index eb248bae..67f7376d 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drkae/ujthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drkae')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae/ujthu/eodyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drkae/schedules/ujthu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kipme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kipme/huqpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kipme')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kipme/huqpi/npwij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kipme/schedules/huqpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvjwa/ithlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvjwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa/ithlv/adldo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvjwa/schedules/ithlv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dobjp/livjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dobjp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp/livjo/wfyyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dobjp/schedules/livjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdmeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/worwt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiabh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/application.json index d19e1ab6..d7fdd163 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/application.json @@ -1,1369 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.5/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.5/xp/addons/Monitoring/nested/integration.json index cb0b453e..c0bc8542 100644 --- a/Sitecore 8.2.5/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.5/xp/addons/Monitoring/nested/integration.json @@ -1,237 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/README.md b/Sitecore 8.2.6/xdb/addons/Monitoring/README.md index c497ccc8..cbb3723a 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.6/xdb/addons/Monitoring/azuredeploy.json index 28b7989b..b1ff7c79 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index a3c215ee..07d5cbf8 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avhvt/roobf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avhvt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avhvt/roobf/iukoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avhvt/schedules/roobf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/geqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index 7d612f93..1b81b654 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jebgt/kgkfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jebgt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jebgt/kgkfn/vkkwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jebgt/schedules/kgkfn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crdeg/ozysu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crdeg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crdeg/ozysu/xegvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crdeg/schedules/ozysu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icdqx/nlrha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icdqx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icdqx/nlrha/hsixz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icdqx/schedules/nlrha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvngj/ghtlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvngj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvngj/ghtlm/drqus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvngj/schedules/ghtlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/magsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/magsj/gtzve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/magsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/magsj/gtzve/agmow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/magsj/schedules/gtzve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/naesg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/naesg/vlpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/naesg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/naesg/vlpnu/yqmxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/naesg/schedules/vlpnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enjas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enjas/zcvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enjas')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enjas/zcvad/bddjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enjas/schedules/zcvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akpul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akpul/cwmez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akpul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akpul/cwmez/hnxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akpul/schedules/cwmez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zonfp/txisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zonfp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zonfp/txisw/ojfgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zonfp/schedules/txisw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aplrx/hghlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aplrx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aplrx/hghlb/liutn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aplrx/schedules/hghlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcmbi/cshjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcmbi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcmbi/cshjx/okmve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcmbi/schedules/cshjx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djapv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djapv/ubrve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djapv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djapv/ubrve/kbmtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djapv/schedules/ubrve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmjrm/btyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmjrm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmjrm/btyja/dtnfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmjrm/schedules/btyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmxku/desmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmxku')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmxku/desmg/piyqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmxku/schedules/desmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/huqqs/badkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/huqqs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/huqqs/badkl/zsqtz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/huqqs/schedules/badkl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbeoh/gxbsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbeoh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbeoh/gxbsu/rzafq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbeoh/schedules/gxbsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqkns/iaoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqkns')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqkns/iaoxk/utomr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqkns/schedules/iaoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emjic/doxbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emjic')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emjic/doxbg/clbed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emjic/schedules/doxbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxwlj/sbzjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxwlj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxwlj/sbzjv/jdwho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxwlj/schedules/sbzjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnjcr/ychkg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnjcr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnjcr/ychkg/keazy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnjcr/schedules/ychkg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbmiv/jegoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbmiv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbmiv/jegoo/pwhao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbmiv/schedules/jegoo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urkyc/abkcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urkyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urkyc/abkcr/lfhvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urkyc/schedules/abkcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzhet/jyxhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzhet')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzhet/jyxhv/wehyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzhet/schedules/jyxhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leofb/xlchd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leofb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leofb/xlchd/kdnty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leofb/schedules/xlchd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnhrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqork')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuhyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inkwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onslx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twfnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgmvy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/egbuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljsca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/btxfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnypz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcwvz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukwid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojndu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pziha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omlzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfnwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoxmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzoki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/geors')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkmex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qegsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebserverfarms.json index bbe11029..3801e7bc 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qfcan/dsaob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qfcan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qfcan/dsaob/mbudw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qfcan/schedules/dsaob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ahfky/tefwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ahfky')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ahfky/tefwu/pefwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ahfky/schedules/tefwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdjvv/xyghm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdjvv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdjvv/xyghm/hvfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdjvv/schedules/xyghm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afvpu/fixki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afvpu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afvpu/fixki/fcoza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afvpu/schedules/fixki')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmxgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngdne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbtbz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebsites.json index 67fad995..a3eb43fe 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syqmf/cmlgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syqmf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syqmf/cmlgx/cuiuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syqmf/schedules/cmlgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hgrne/tlhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hgrne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hgrne/tlhfo/imdtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hgrne/schedules/tlhfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtluj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/redbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/application.json index 1720efc7..fcc72d7a 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/integration.json index 4a8dccb8..d0e9039d 100644 --- a/Sitecore 8.2.6/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.6/xdb/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/README.md b/Sitecore 8.2.6/xm/addons/Monitoring/README.md index e918100e..96d6d022 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.6/xm/addons/Monitoring/README.md @@ -25,7 +25,8 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.6/xm/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertcacheredis.json index 3d3b529a..c958b794 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gymfh/xrxut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gymfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gymfh/xrxut/utgfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gymfh/schedules/xrxut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgdlf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 0f5a382c..713826ad 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rshwz/ctwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rshwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rshwz/ctwpf/wbuhy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rshwz/schedules/ctwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xkhqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index adf3d152..9aaa23f8 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwdxz/yzrjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwdxz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwdxz/yzrjh/yotml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwdxz/schedules/yzrjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atdvu/lvwac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atdvu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atdvu/lvwac/mnqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atdvu/schedules/lvwac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhqgi/bmhpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhqgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhqgi/bmhpz/qcbio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhqgi/schedules/bmhpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pojsl/tuolq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pojsl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pojsl/tuolq/pyoqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pojsl/schedules/tuolq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fykdl/yenwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fykdl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fykdl/yenwo/jsygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fykdl/schedules/yenwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ljcjz/bxgtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ljcjz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ljcjz/bxgtj/zrivj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ljcjz/schedules/bxgtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohfsu/empcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohfsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohfsu/empcu/shdrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohfsu/schedules/empcu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eirkt/yynft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eirkt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eirkt/yynft/yuhin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eirkt/schedules/yynft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/brahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/brahc/cxhvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/brahc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/brahc/cxhvq/vwxdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/brahc/schedules/cxhvq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pkfgy/ppock')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pkfgy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pkfgy/ppock/danet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pkfgy/schedules/ppock')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqyzl/tmicf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqyzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqyzl/tmicf/cjtqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqyzl/schedules/tmicf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdlbh/qtouk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdlbh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdlbh/qtouk/mgfdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdlbh/schedules/qtouk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wzudf/lpdsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wzudf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wzudf/lpdsx/zfrmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wzudf/schedules/lpdsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gynth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gynth/grfso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gynth')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gynth/grfso/vzymn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gynth/schedules/grfso')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aryck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aryck/wmyuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aryck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aryck/wmyuf/xngiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aryck/schedules/wmyuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qskwe/cpkam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qskwe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qskwe/cpkam/olhfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qskwe/schedules/cpkam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngpds/dquyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngpds/dquyx/qdhzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngpds/schedules/dquyx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nadue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nadue/ooapy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nadue')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nadue/ooapy/azhsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nadue/schedules/ooapy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/iubcl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odjsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvkoz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnvjo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmeul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqfgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bijzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dntzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyalk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnnij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grteb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rftws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxtdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmvub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxide')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umrse')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcvyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywzlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebserverfarms.json index 81ae01d7..f0db4e63 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsquh/qvzla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsquh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsquh/qvzla/ydciq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsquh/schedules/qvzla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpgoy/qanpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpgoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpgoy/qanpi/sjayl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpgoy/schedules/qanpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/botiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/botiw/kexpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/botiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/botiw/kexpf/wbulz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/botiw/schedules/kexpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/toohs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/toohs/bqnyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/toohs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/toohs/bqnyg/mjuid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/toohs/schedules/bqnyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/anvmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ounef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miygh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtkhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebsites.json index 07633e2b..f343ab86 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efxhb/qpxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efxhb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efxhb/qpxmu/aoyvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efxhb/schedules/qpxmu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkvcs/qryan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkvcs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkvcs/qryan/ioaud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkvcs/schedules/qryan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/izffw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqtbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/application.json index 4b6fd7cb..3b49909f 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/application.json @@ -1,994 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.6/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.6/xm/addons/Monitoring/nested/integration.json index d192d618..94f40a86 100644 --- a/Sitecore 8.2.6/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.6/xm/addons/Monitoring/nested/integration.json @@ -1,162 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/README.md b/Sitecore 8.2.6/xp/addons/Monitoring/README.md index ac2df5e9..58e3f9dc 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.6/xp/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.6/xp/addons/Monitoring/azuredeploy.json index 3788180c..fb11e2ba 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertcacheredis.json index d00c0912..389a8e39 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwtx/vglac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwtx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwtx/vglac/qwbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwtx/schedules/vglac')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfoey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 0239013b..702f5010 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iejct/hkvxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iejct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iejct/hkvxp/qvkmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iejct/schedules/hkvxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/krtjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 5e34914f..d621a079 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kiaxm/gicna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kiaxm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kiaxm/gicna/balob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kiaxm/schedules/gicna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvsc/fyofk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvsc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvsc/fyofk/qusih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvsc/schedules/fyofk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pemwj/lbdij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pemwj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pemwj/lbdij/tofqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pemwj/schedules/lbdij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxqui/exfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxqui')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxqui/exfky/wgsde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxqui/schedules/exfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbmcp/rmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbmcp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbmcp/rmnpu/uvmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbmcp/schedules/rmnpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dysva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dysva/kwclt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dysva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dysva/kwclt/hyfda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dysva/schedules/kwclt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdvqs/gtfjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdvqs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdvqs/gtfjn/awkta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdvqs/schedules/gtfjn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgxza/esdci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgxza')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgxza/esdci/tdyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgxza/schedules/esdci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oljmf/daixa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oljmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oljmf/daixa/jgtmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oljmf/schedules/daixa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fjgrp/pqsly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fjgrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fjgrp/pqsly/ypoex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fjgrp/schedules/pqsly')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbnol/zjhxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbnol')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbnol/zjhxg/rasjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbnol/schedules/zjhxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dvlza/mgxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dvlza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dvlza/mgxhu/wxicy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dvlza/schedules/mgxhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cejqi/eoqdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cejqi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cejqi/eoqdn/qovcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cejqi/schedules/eoqdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqysj/ztevf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqysj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqysj/ztevf/yqgaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqysj/schedules/ztevf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybffx/fzlqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybffx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybffx/fzlqg/iqnbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybffx/schedules/fzlqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wpbck/pldmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wpbck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wpbck/pldmc/zexiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wpbck/schedules/pldmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xsilf/fbmjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xsilf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xsilf/fbmjz/escgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xsilf/schedules/fbmjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqijv/ulbah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqijv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqijv/ulbah/bcfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqijv/schedules/ulbah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qavug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qavug/pzuce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qavug')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qavug/pzuce/hcyua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qavug/schedules/pzuce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rqwyd/clfvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rqwyd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rqwyd/clfvs/arlzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rqwyd/schedules/clfvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxajo/ubkbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxajo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxajo/ubkbp/fgtei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxajo/schedules/ubkbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqrja/jkmxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqrja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqrja/jkmxy/xutgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqrja/schedules/jkmxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jumzt/mcbdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jumzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jumzt/mcbdn/kbjsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jumzt/schedules/mcbdn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvpip/earuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvpip')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvpip/earuz/ksacc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvpip/schedules/earuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/alnif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezike')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgtxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htdef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlusf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itcfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htcre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfxeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmlkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cyqqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkvmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbowt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnvzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfzxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxgzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wstfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/joqog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alyix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngcot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsgrp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shlqo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebserverfarms.json index 0bde498a..b0106348 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaqsl/ymrgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaqsl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaqsl/ymrgl/kjnor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaqsl/schedules/ymrgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlydv/wfzap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlydv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlydv/wfzap/wgryj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlydv/schedules/wfzap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ordsw/pbmeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ordsw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ordsw/pbmeo/kvunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ordsw/schedules/pbmeo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flmgc/ccyez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flmgc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flmgc/ccyez/bcgsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flmgc/schedules/ccyez')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdkzv/dqzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdkzv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdkzv/dqzsv/jvxpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdkzv/schedules/dqzsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uluta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uluta/mgngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uluta')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uluta/mgngs/ncjvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uluta/schedules/mgngs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkvjd/aogmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkvjd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkvjd/aogmv/ncodu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkvjd/schedules/aogmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlncq/opcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlncq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlncq/opcqn/befwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlncq/schedules/opcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/odejq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnhta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxear')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knctm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/guvie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akhwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpnbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajmxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebsites.json index eb248bae..67f7376d 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drkae/ujthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drkae')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drkae/ujthu/eodyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drkae/schedules/ujthu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kipme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kipme/huqpi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kipme')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kipme/huqpi/npwij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kipme/schedules/huqpi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvjwa/ithlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvjwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvjwa/ithlv/adldo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvjwa/schedules/ithlv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dobjp/livjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dobjp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dobjp/livjo/wfyyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dobjp/schedules/livjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdmeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/worwt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiabh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/application.json index d19e1ab6..d7fdd163 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/application.json @@ -1,1369 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.6/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.6/xp/addons/Monitoring/nested/integration.json index cb0b453e..c0bc8542 100644 --- a/Sitecore 8.2.6/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.6/xp/addons/Monitoring/nested/integration.json @@ -1,237 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/README.md b/Sitecore 8.2.7/xdb/addons/Monitoring/README.md index d1f20eb0..f644ec44 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/README.md +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/README.md @@ -8,12 +8,12 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -26,11 +26,11 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.json index 6933a97f..3ca88097 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.json @@ -1,312 +1,334 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "xcSolrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "xcSolrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsearchsearchservices.json index 3b00485a..7afeaa74 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mwmyr/btrbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mwmyr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr/btrbu/cjdnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mwmyr/schedules/btrbu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jnybt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json index e7bf1856..91755ac3 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pskdj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pskdj/pyhzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pskdj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pskdj/pyhzl/abqzj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pskdj/schedules/pyhzl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mgduk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mgduk/judui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mgduk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mgduk/judui/nbrti')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mgduk/schedules/judui')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nkrva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nkrva/ulkoe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nkrva')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nkrva/ulkoe/ugkwq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nkrva/schedules/ulkoe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/snoye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/snoye/hbcxx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/snoye')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/snoye/hbcxx/qgbwp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/snoye/schedules/hbcxx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qkutb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qkutb/qkicj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qkutb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qkutb/qkicj/oazxx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qkutb/schedules/qkicj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sxfqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sxfqy/vxydv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sxfqy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sxfqy/vxydv/pbuqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sxfqy/schedules/vxydv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zxpcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zxpcu/cgbhx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zxpcu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zxpcu/cgbhx/nstqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zxpcu/schedules/cgbhx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gwele')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gwele/dsumr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gwele')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gwele/dsumr/ttsid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gwele/schedules/dsumr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/plbht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/plbht/pibcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/plbht')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/plbht/pibcf/pbpdj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/plbht/schedules/pibcf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kkxjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kkxjp/udpio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kkxjp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kkxjp/udpio/qplql')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kkxjp/schedules/udpio')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xfmio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xfmio/gshij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xfmio')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xfmio/gshij/anygj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xfmio/schedules/gshij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ylxro')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ylxro/ffnuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ylxro')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ylxro/ffnuz/rcrfa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ylxro/schedules/ffnuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yduwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yduwz/vgyhw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yduwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yduwz/vgyhw/safcg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yduwz/schedules/vgyhw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/esppl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/esppl/tfnrb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/esppl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/esppl/tfnrb/hnvkb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/esppl/schedules/tfnrb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/honse')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/honse/tjerl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/honse')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/honse/tjerl/umtdg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/honse/schedules/tjerl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/clcow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/clcow/ziqdo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/clcow')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/clcow/ziqdo/ubred')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/clcow/schedules/ziqdo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/plgvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/plgvh/lxthv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/plgvh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/plgvh/lxthv/mtvvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/plgvh/schedules/lxthv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qornw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qornw/woqhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qornw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qornw/woqhu/gwocw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qornw/schedules/woqhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ckpwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ckpwz/wmnre')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ckpwz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ckpwz/wmnre/rheqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ckpwz/schedules/wmnre')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jvnar')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jvnar/dlpgf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jvnar')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jvnar/dlpgf/kshie')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jvnar/schedules/dlpgf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pnkza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pnkza/sovmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pnkza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pnkza/sovmi/ojrjb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pnkza/schedules/sovmi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/czopp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/czopp/yjxxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/czopp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/czopp/yjxxp/gyxpc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/czopp/schedules/yjxxp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cygru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cygru/uwuex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cygru')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cygru/uwuex/qmcav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cygru/schedules/uwuex')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lzdwk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lzdwk/dwesl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lzdwk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lzdwk/dwesl/gpsmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lzdwk/schedules/dwesl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ibipl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyato')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iqxxh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lmpdb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njcsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iwgni')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/giosd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vewby')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yftqb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/suhtp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xmolu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yddvc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vrmfg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vmfag')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xjjso')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fcovp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/csebj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lizix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qchgm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ghdts')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jfylo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aemsf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nxagf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ybiqq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebserverfarms.json index 7e1718cd..8c9184ad 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nztuk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nztuk/dvtcy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nztuk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nztuk/dvtcy/lngmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nztuk/schedules/dvtcy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/utges')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/utges/vauce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/utges')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/utges/vauce/ptlog')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/utges/schedules/vauce')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qqfto')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qqfto/fwexu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qqfto')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qqfto/fwexu/nwywi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qqfto/schedules/fwexu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yssnt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yssnt/donto')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yssnt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yssnt/donto/nhuyj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yssnt/schedules/donto')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/qhlto')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tjpmz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rbycj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/omolz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebsites.json index 8eb51cdc..406c9728 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/slofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/slofb/eoyhk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/slofb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/slofb/eoyhk/cdqkz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/slofb/schedules/eoyhk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/moayv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/moayv/wmxzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/moayv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/moayv/wmxzn/sfwvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/moayv/schedules/wmxzn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/fzqzd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ujljm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/application.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/application.json index 62ed71e0..fcc72d7a 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/application.json @@ -1,919 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/integration.json b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/integration.json index 0caac596..d0e9039d 100644 --- a/Sitecore 8.2.7/xdb/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.7/xdb/addons/Monitoring/nested/integration.json @@ -1,167 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/README.md b/Sitecore 8.2.7/xm/addons/Monitoring/README.md index 4997b670..c61df52f 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/README.md +++ b/Sitecore 8.2.7/xm/addons/Monitoring/README.md @@ -13,7 +13,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -26,11 +26,12 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.json index 07d6bf0d..ba563fd5 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.json @@ -1,338 +1,363 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "solrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.parameters.json index b406ea2f..d548de05 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/azuredeploy.parameters.json @@ -1,24 +1,21 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "value": "" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "" - }, - "omsWorkspaceAlertRecipients": { - "value": "" - }, - "omsWorkspaceLocation": { - "value": "" - }, - "applicationInsightsLocation": { - "value": "" - }, - "searchProvider": { - "value": "" - } - } -} \ No newline at end of file + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "deploymentId": { + "value": "" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "" + }, + "omsWorkspaceAlertRecipients": { + "value": "" + }, + "omsWorkspaceLocation": { + "value": "" + }, + "applicationInsightsLocation": { + "value": "" + } + } +} diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertcacheredis.json index 75640ab0..83bb7808 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kjctk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kjctk/zrcfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kjctk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kjctk/zrcfh/iahwc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kjctk/schedules/zrcfh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ykesn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsearchsearchservices.json index 3b00485a..ebb90475 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mwmyr/btrbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mwmyr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr/btrbu/cjdnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mwmyr/schedules/btrbu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hqptl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsqlserversdatabases.json index 7070605b..b6265ba7 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1372 +1,1181 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/anccm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/anccm/qktvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/anccm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/anccm/qktvs/ruyzh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/anccm/schedules/qktvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tnhpb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tnhpb/zelpk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tnhpb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tnhpb/zelpk/akzjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tnhpb/schedules/zelpk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gppdh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gppdh/ydlcx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gppdh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gppdh/ydlcx/tbtsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gppdh/schedules/ydlcx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/etztl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/etztl/ploeq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/etztl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/etztl/ploeq/mtlci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/etztl/schedules/ploeq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/stovp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/stovp/hdkex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/stovp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/stovp/hdkex/cyrpe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/stovp/schedules/hdkex')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zxupv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zxupv/chzls')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zxupv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zxupv/chzls/xpgoa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zxupv/schedules/chzls')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akfzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akfzm/jzeqa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akfzm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akfzm/jzeqa/igarb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akfzm/schedules/jzeqa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ixfor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ixfor/opaug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ixfor')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ixfor/opaug/gsweb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ixfor/schedules/opaug')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gvyxo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gvyxo/ptieu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gvyxo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gvyxo/ptieu/nrjtc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gvyxo/schedules/ptieu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tledj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tledj/uzbsr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tledj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tledj/uzbsr/tpfvz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tledj/schedules/uzbsr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/avltb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avltb/fmkkq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avltb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avltb/fmkkq/xsqar')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avltb/schedules/fmkkq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pueuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pueuz/xvpsz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pueuz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pueuz/xvpsz/pjtck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pueuz/schedules/xvpsz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nwcbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nwcbs/plxkm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nwcbs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nwcbs/plxkm/nxjld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nwcbs/schedules/plxkm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ltkyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ltkyt/bvzew')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ltkyt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ltkyt/bvzew/adtem')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ltkyt/schedules/bvzew')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ekltn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ekltn/nfwyu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ekltn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ekltn/nfwyu/wgxlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ekltn/schedules/nfwyu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/luphv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/luphv/bntme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/luphv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/luphv/bntme/jsonq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/luphv/schedules/bntme')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vecsh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vecsh/cdwey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vecsh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vecsh/cdwey/yhorg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vecsh/schedules/cdwey')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bdxqa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bdxqa/dxhhl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bdxqa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bdxqa/dxhhl/gqpdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bdxqa/schedules/dxhhl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/cdpam')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pxshb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ibztv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lhwjt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oewxt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gkbgy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywvhl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fbuzj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hwohb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hoquj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rspmz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fknux')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bkohj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jhbvs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/maqvr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cgkfp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/chumd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/auzeg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebserverfarms.json index ef0aacdf..7b4903e4 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yoglj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yoglj/wqioh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yoglj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yoglj/wqioh/hjgtf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yoglj/schedules/wqioh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sydnz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sydnz/uhqma')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sydnz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sydnz/uhqma/mmtfj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sydnz/schedules/uhqma')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbisw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbisw/suylq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbisw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbisw/suylq/ejqka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbisw/schedules/suylq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/medfr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/medfr/ytccp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/medfr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/medfr/ytccp/xxosj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/medfr/schedules/ytccp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/uzplm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/svpfr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mhiqj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hshgp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebsites.json index 0840dbb5..12e5755e 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fwtwf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fwtwf/mgqdy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fwtwf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fwtwf/mgqdy/uuhpc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fwtwf/schedules/mgqdy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kqlht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kqlht/srqux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kqlht')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kqlht/srqux/ypcpy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kqlht/schedules/srqux')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/wrqyh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nwprq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/application.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/application.json index 49dce0af..3b49909f 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/application.json @@ -1,919 +1,940 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/addons/Monitoring/nested/integration.json b/Sitecore 8.2.7/xm/addons/Monitoring/nested/integration.json index de49b4bf..94f40a86 100644 --- a/Sitecore 8.2.7/xm/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.7/xm/addons/Monitoring/nested/integration.json @@ -1,167 +1,168 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/README.md b/Sitecore 8.2.7/xp/addons/Monitoring/README.md index fb4c9f9b..5b585031 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/README.md +++ b/Sitecore 8.2.7/xp/addons/Monitoring/README.md @@ -13,7 +13,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -26,11 +26,11 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.json b/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.json index 07d6bf0d..ba563fd5 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.json @@ -1,338 +1,363 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "solrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.parameters.json index d131521d..d548de05 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,13 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } - - - - diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertcacheredis.json index 920f6524..1a3b576d 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nqbkx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nqbkx/uldsi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nqbkx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nqbkx/uldsi/pfthq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nqbkx/schedules/uldsi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqhus')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsearchsearchservices.json index 3b00485a..c493452b 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mwmyr/btrbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mwmyr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr/btrbu/cjdnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mwmyr/schedules/btrbu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/snbym')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsqlserversdatabases.json index 6d2116c3..c6ad1441 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/onkcj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/onkcj/didnx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/onkcj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/onkcj/didnx/bgvpw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/onkcj/schedules/didnx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uerbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uerbh/kblgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uerbh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uerbh/kblgi/adtrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uerbh/schedules/kblgi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohayb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohayb/ztudc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohayb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohayb/ztudc/yaszk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohayb/schedules/ztudc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cwlsr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cwlsr/mvbhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cwlsr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cwlsr/mvbhu/wuzcb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cwlsr/schedules/mvbhu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hnfaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hnfaj/xhjqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hnfaj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hnfaj/xhjqz/zwxmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hnfaj/schedules/xhjqz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jbidk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jbidk/ztdvp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jbidk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jbidk/ztdvp/hbuda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jbidk/schedules/ztdvp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iwomd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwomd/gmsyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwomd')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwomd/gmsyv/xldjg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwomd/schedules/gmsyv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/awhlh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/awhlh/seupa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/awhlh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/awhlh/seupa/lszjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/awhlh/schedules/seupa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/czjwk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/czjwk/bphkj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/czjwk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/czjwk/bphkj/xdfet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/czjwk/schedules/bphkj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/utosx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/utosx/hvzhj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/utosx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/utosx/hvzhj/ourru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/utosx/schedules/hvzhj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hwrgf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hwrgf/jhtax')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hwrgf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hwrgf/jhtax/qbuwc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hwrgf/schedules/jhtax')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/saqqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/saqqj/fjche')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/saqqj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/saqqj/fjche/evdyw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/saqqj/schedules/fjche')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ngprf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ngprf/wylfe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ngprf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ngprf/wylfe/maond')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ngprf/schedules/wylfe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/taavy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/taavy/kxgle')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/taavy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/taavy/kxgle/uyovd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/taavy/schedules/kxgle')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rsiqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rsiqm/nlxcd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rsiqm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rsiqm/nlxcd/dracv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rsiqm/schedules/nlxcd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qqtcd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qqtcd/qftrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qqtcd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qqtcd/qftrp/lyxbj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qqtcd/schedules/qftrp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mhrst')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mhrst/ekalb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mhrst')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mhrst/ekalb/njhuj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mhrst/schedules/ekalb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lvhht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lvhht/kmxtd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lvhht')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lvhht/kmxtd/hkapt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lvhht/schedules/kmxtd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tlgxf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tlgxf/wului')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tlgxf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tlgxf/wului/viszx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tlgxf/schedules/wului')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pomlt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pomlt/ptsxb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pomlt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pomlt/ptsxb/nblhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pomlt/schedules/ptsxb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qggdj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qggdj/gorsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qggdj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qggdj/gorsf/gwbsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qggdj/schedules/gorsf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xhibb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xhibb/fwsmn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xhibb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xhibb/fwsmn/mdgno')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xhibb/schedules/fwsmn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kfmus')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kfmus/cskur')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kfmus')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kfmus/cskur/rhyns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kfmus/schedules/cskur')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pdyxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pdyxg/bmtyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pdyxg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pdyxg/bmtyr/bizjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pdyxg/schedules/bmtyr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywvzj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wtzrb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aqsoi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mgmaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mzhds')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qalas')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zsouy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxoml')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vpuds')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aivju')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kvrdd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mstix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dfpzj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jsdvd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/clzum')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ffokp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmbzr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hvnll')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lyzda')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ndkpb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iafgf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mqecx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wmnui')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/duqdi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebserverfarms.json index 1faad6c8..7f045be5 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ielyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ielyc/waoqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ielyc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ielyc/waoqy/qofwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ielyc/schedules/waoqy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wtilt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wtilt/gxoaf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wtilt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wtilt/gxoaf/nfmph')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wtilt/schedules/gxoaf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tzzkf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tzzkf/goxlf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tzzkf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tzzkf/goxlf/ecbvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tzzkf/schedules/goxlf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hcgdx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hcgdx/aweje')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hcgdx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hcgdx/aweje/wnsop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hcgdx/schedules/aweje')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dgxjj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dgxjj/vyidx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dgxjj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dgxjj/vyidx/qljib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dgxjj/schedules/vyidx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/boinz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/boinz/pardh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/boinz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/boinz/pardh/xqdiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/boinz/schedules/pardh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/umpnx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/umpnx/ftfbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/umpnx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/umpnx/ftfbg/fxrcm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/umpnx/schedules/ftfbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqheb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqheb/aabpq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqheb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqheb/aabpq/kgsxb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqheb/schedules/aabpq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rlezd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kubpv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pocnt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkpys')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zhvgs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqvhq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/irnky')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nypmp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebsites.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebsites.json index 09457390..4b8a8704 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/alertwebsites.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lxjtr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lxjtr/wimpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lxjtr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lxjtr/wimpu/aavli')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lxjtr/schedules/wimpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zdruv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zdruv/pvagn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zdruv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zdruv/pvagn/hqubv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zdruv/schedules/pvagn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nczkz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nczkz/mthbc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nczkz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nczkz/mthbc/zrkkx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nczkz/schedules/mthbc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aoepr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aoepr/vgqht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aoepr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aoepr/vgqht/chguh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aoepr/schedules/vgqht')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rcwat')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/afwqi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lyeox')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odxdc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/application.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/application.json index 2f00ea11..d7fdd163 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/application.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/application.json @@ -1,1294 +1,1290 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/infrastructure.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/addons/Monitoring/nested/integration.json b/Sitecore 8.2.7/xp/addons/Monitoring/nested/integration.json index 99324759..c0bc8542 100644 --- a/Sitecore 8.2.7/xp/addons/Monitoring/nested/integration.json +++ b/Sitecore 8.2.7/xp/addons/Monitoring/nested/integration.json @@ -1,242 +1,243 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-web-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/README.md b/Sitecore 9.0.0/XDB/addons/Monitoring/README.md index c497ccc8..29990cac 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/README.md +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/README.md @@ -8,7 +8,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group +| deploymentId | The prefix of the Sitecore resources names within a resource group. | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.0/XDB/addons/Monitoring/azuredeploy.json index 9c448fa0..b1ff7c79 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json index 370d2fac..2cfc2d03 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mudjy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mudjy/zbcbo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mudjy')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mudjy/zbcbo/xllfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mudjy/schedules/zbcbo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/htmlt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json index ac6c3c6b..e74ea697 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,4924 +1,4205 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/munxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/munxw/sgfsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/munxw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/munxw/sgfsp/tkapq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/munxw/schedules/sgfsp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hjmpg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hjmpg/evacs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hjmpg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hjmpg/evacs/eknjc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hjmpg/schedules/evacs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/leosr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/leosr/kfeut')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/leosr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/leosr/kfeut/jgurz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/leosr/schedules/kfeut')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bdtgv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bdtgv/ajqyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bdtgv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bdtgv/ajqyt/oxxfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bdtgv/schedules/ajqyt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gorhf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gorhf/fgasd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gorhf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gorhf/fgasd/ueinf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gorhf/schedules/fgasd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qotjw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qotjw/irscj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qotjw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qotjw/irscj/psjlc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qotjw/schedules/irscj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ktatw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ktatw/xjafu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ktatw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ktatw/xjafu/yvfsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ktatw/schedules/xjafu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tmkhj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tmkhj/aedsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tmkhj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tmkhj/aedsl/xtwli')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tmkhj/schedules/aedsl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vlapu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vlapu/ujvhs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vlapu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vlapu/ujvhs/rmgue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vlapu/schedules/ujvhs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lxahb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lxahb/dthxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lxahb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lxahb/dthxy/lsshl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lxahb/schedules/dthxy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xrweb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xrweb/mejto')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xrweb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xrweb/mejto/tdkyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xrweb/schedules/mejto')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urmna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urmna/poddy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urmna')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urmna/poddy/lbgwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urmna/schedules/poddy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hmxpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hmxpz/qezpg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hmxpz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hmxpz/qezpg/gfjdb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hmxpz/schedules/qezpg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/drcjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/drcjv/mpcte')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/drcjv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/drcjv/mpcte/auadm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/drcjv/schedules/mpcte')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oaumy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oaumy/oscop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oaumy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oaumy/oscop/qamnl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oaumy/schedules/oscop')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lmuxo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lmuxo/ozhir')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lmuxo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lmuxo/ozhir/gkfhp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lmuxo/schedules/ozhir')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qycfw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qycfw/krscp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qycfw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qycfw/krscp/bmzyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qycfw/schedules/krscp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dfxkv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dfxkv/dmpuk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dfxkv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dfxkv/dmpuk/mvyot')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dfxkv/schedules/dmpuk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/udfkm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/udfkm/qdtbj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/udfkm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/udfkm/qdtbj/juhjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/udfkm/schedules/qdtbj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oervl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oervl/hycmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oervl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oervl/hycmg/xywlw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oervl/schedules/hycmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yfidb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yfidb/wtcqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yfidb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yfidb/wtcqy/hizzh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yfidb/schedules/wtcqy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crqsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crqsp/lftzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crqsp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crqsp/lftzd/gccge')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crqsp/schedules/lftzd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cclvp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cclvp/bibpe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cclvp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cclvp/bibpe/ohzvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cclvp/schedules/bibpe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tgdmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tgdmi/bmjig')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tgdmi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tgdmi/bmjig/lmdgq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tgdmi/schedules/bmjig')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ixvaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ixvaq/oafxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ixvaq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ixvaq/oafxw/pvmak')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ixvaq/schedules/oafxw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/daxhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/daxhu/sbpjs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/daxhu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/daxhu/sbpjs/xggue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/daxhu/schedules/sbpjs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ploaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ploaj/xrgrs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ploaj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ploaj/xrgrs/ljbse')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ploaj/schedules/xrgrs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pacsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pacsw/zcywf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pacsw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pacsw/zcywf/cvwuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pacsw/schedules/zcywf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qmhws')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qmhws/mcqgo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qmhws')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qmhws/mcqgo/vhkjt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qmhws/schedules/mcqgo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jelij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jelij/ymkmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jelij')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jelij/ymkmc/pgdxu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jelij/schedules/ymkmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lktvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lktvh/uyhdu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lktvh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lktvh/uyhdu/geucb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lktvh/schedules/uyhdu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kzcow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kzcow/jenjw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kzcow')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kzcow/jenjw/englt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kzcow/schedules/jenjw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mkaxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mkaxp/kcnpb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mkaxp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mkaxp/kcnpb/infty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mkaxp/schedules/kcnpb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gatei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gatei/pgkqc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gatei')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gatei/pgkqc/swxff')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gatei/schedules/pgkqc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bnqko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bnqko/zwjme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bnqko')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bnqko/zwjme/jwqpl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bnqko/schedules/zwjme')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tqlbe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tqlbe/sdqzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tqlbe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tqlbe/sdqzn/txrng')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tqlbe/schedules/sdqzn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gmnpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gmnpu/zdjgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gmnpu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gmnpu/zdjgl/vyjzs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gmnpu/schedules/zdjgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/horlz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/horlz/qxagv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/horlz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/horlz/qxagv/dronw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/horlz/schedules/qxagv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wntss')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wntss/awllz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wntss')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wntss/awllz/wsufy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wntss/schedules/awllz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pdenp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pdenp/vzbtj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pdenp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pdenp/vzbtj/fzdju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pdenp/schedules/vzbtj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dgedc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dgedc/timzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dgedc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dgedc/timzl/yzpzj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dgedc/schedules/timzl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ytczm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ytczm/jwpga')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ytczm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ytczm/jwpga/iolru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ytczm/schedules/jwpga')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pwaco')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pwaco/nisjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pwaco')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pwaco/nisjp/hnrwi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pwaco/schedules/nisjp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zushi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zushi/pdcon')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zushi')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zushi/pdcon/fokwn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zushi/schedules/pdcon')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vfpfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vfpfh/jvqqs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vfpfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vfpfh/jvqqs/dkrcy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vfpfh/schedules/jvqqs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sovwl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sovwl/kffze')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sovwl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sovwl/kffze/xspvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sovwl/schedules/kffze')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jepaw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jepaw/hokhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jepaw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jepaw/hokhv/crsfg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jepaw/schedules/hokhv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fwixr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fwixr/ihmeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fwixr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fwixr/ihmeg/bwdvp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fwixr/schedules/ihmeg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xfybs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xfybs/ebtnj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xfybs')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xfybs/ebtnj/snwhe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xfybs/schedules/ebtnj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yccve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yccve/oinht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yccve')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yccve/oinht/lbipk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yccve/schedules/oinht')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jnuqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jnuqg/ubwjj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jnuqg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jnuqg/ubwjj/kkqtc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jnuqg/schedules/ubwjj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mnlcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mnlcv/jqafx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mnlcv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mnlcv/jqafx/uxdpc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mnlcv/schedules/jqafx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pxnfs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pxnfs/zxbof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pxnfs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pxnfs/zxbof/txaku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pxnfs/schedules/zxbof')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rwpds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rwpds/kucxb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rwpds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rwpds/kucxb/zayjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rwpds/schedules/kucxb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ejhaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ejhaj/hnkds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ejhaj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ejhaj/hnkds/txmgk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ejhaj/schedules/hnkds')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eutdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eutdn/norsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eutdn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eutdn/norsu/jpnak')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eutdn/schedules/norsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/plvcm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/plvcm/oxcnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/plvcm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/plvcm/oxcnb/zfdyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/plvcm/schedules/oxcnb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lwyou')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lwyou/djyaf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lwyou')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lwyou/djyaf/vfstz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lwyou/schedules/djyaf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/osczc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/osczc/ywjnr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/osczc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/osczc/ywjnr/sylof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/osczc/schedules/ywjnr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fdbwc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fdbwc/jmzpt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fdbwc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fdbwc/jmzpt/jpulg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fdbwc/schedules/jmzpt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icomj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icomj/lkojr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icomj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icomj/lkojr/mawry')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icomj/schedules/lkojr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qjglt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qjglt/zckxj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qjglt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qjglt/zckxj/mxued')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qjglt/schedules/zckxj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dfeaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dfeaq/eqpvv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dfeaq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dfeaq/eqpvv/ityoq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dfeaq/schedules/eqpvv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lmpkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lmpkt/fhakx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lmpkt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lmpkt/fhakx/ycbou')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lmpkt/schedules/fhakx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/maauu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/maauu/tgvod')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/maauu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/maauu/tgvod/smbxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/maauu/schedules/tgvod')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/siizo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/siizo/ukzbg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/siizo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/siizo/ukzbg/iwage')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/siizo/schedules/ukzbg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/whvkt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fcnjs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eaqko')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ytagq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cxkme')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cftcw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mrsuk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alylv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nsuhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akiug')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eixrh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvipf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kouqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qykgf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rzubf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnlar')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zxxos')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ioexc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ffnqv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nhatz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nfbkm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gnevi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wzulo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bqsjy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xcrwe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ghtlc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rseaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnapa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qukel')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xsbhz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ridjp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rjzdf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/prinv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/frnmy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/feanr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ktyfa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/psxck')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bgtds')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hmyld')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tixqz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bmsef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fdbry')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mjjwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/konen')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tpqkc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gmcst')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fwtoe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jcztr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oesfk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hxqek')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pvwwe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vwijx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/apytx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtwux')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/judxc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kmsbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/weset')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lniaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vllau')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cjshx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxwsa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rlbyl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kqghe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zejxj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/glnvb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ctinf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json index f5344390..182705e1 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rlpbz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rlpbz/hsuwf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rlpbz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rlpbz/hsuwf/mvocl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rlpbz/schedules/hsuwf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jbifl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jbifl/oasxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jbifl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jbifl/oasxz/grzna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jbifl/schedules/oasxz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dqwju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dqwju/ctjdd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dqwju')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dqwju/ctjdd/qbmux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dqwju/schedules/ctjdd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ottrl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ottrl/rebzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ottrl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ottrl/rebzv/cijsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ottrl/schedules/rebzv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bqlcg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bqlcg/gulav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bqlcg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bqlcg/gulav/uufmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bqlcg/schedules/gulav')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tykgo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tykgo/ujbvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tykgo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tykgo/ujbvh/ftgkj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tykgo/schedules/ujbvh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pqxkn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pqxkn/satzu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pqxkn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pqxkn/satzu/fugvp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pqxkn/schedules/satzu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rntah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rntah/ksyja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rntah')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rntah/ksyja/menqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rntah/schedules/ksyja')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/obtps')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ouwlb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miksj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bpmrq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfwuh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cenbg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/livbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/distw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebsites.json index 1cfaddbb..71932b77 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/alertwebsites.json @@ -1,558 +1,488 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aquon')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aquon/gcvtu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aquon')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aquon/gcvtu/umzjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aquon/schedules/gcvtu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gmohy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gmohy/jlxnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gmohy')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gmohy/jlxnu/safgs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gmohy/schedules/jlxnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/phgeu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/phgeu/gjuzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/phgeu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/phgeu/gjuzt/vwgrq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/phgeu/schedules/gjuzt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gxlbh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gxlbh/qzpke')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gxlbh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gxlbh/qzpke/saozj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gxlbh/schedules/qzpke')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rtqba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rtqba/raqen')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rtqba')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rtqba/raqen/rtjbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rtqba/schedules/raqen')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wrxdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wrxdl/wvqby')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wrxdl')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wrxdl/wvqby/rptzy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wrxdl/schedules/wvqby')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pcvsm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pcvsm/qzshj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pcvsm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pcvsm/qzshj/vnjmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pcvsm/schedules/qzshj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xsirb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/klpsb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/syxnl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xuqbm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vrpfq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qljcx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qazxo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/application.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/application.json index 5b4c5308..88fed24c 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/application.json @@ -1,2044 +1,1920 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/integration.json b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/integration.json index f07b78f4..d381d5ab 100644 --- a/Sitecore 9.0.0/XDB/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.0/XDB/addons/Monitoring/nested/integration.json @@ -1,372 +1,378 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/README.md b/Sitecore 9.0.0/XM/addons/Monitoring/README.md index e918100e..c240d4d5 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/README.md +++ b/Sitecore 9.0.0/XM/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.0/XM/addons/Monitoring/azuredeploy.json index 1bdfbaab..fb11e2ba 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertcacheredis.json index 910385f8..32c50000 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yocpa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yocpa/jebps')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yocpa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yocpa/jebps/msnno')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yocpa/schedules/jebps')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/islfz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json index cf21cc37..75d901f0 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/deore')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/deore/qowxu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/deore')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/deore/qowxu/vhrog')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/deore/schedules/qowxu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/oticy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json index 64d6a338..e96ea6a9 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dnprv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dnprv/gwass')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dnprv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dnprv/gwass/moygu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dnprv/schedules/gwass')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ftiyf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ftiyf/gwemb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ftiyf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ftiyf/gwemb/prnmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ftiyf/schedules/gwemb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/chler')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/chler/hbkde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/chler')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/chler/hbkde/vxmpe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/chler/schedules/hbkde')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bmgcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bmgcv/oihyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bmgcv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bmgcv/oihyc/authl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bmgcv/schedules/oihyc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qkpgm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qkpgm/erzfy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qkpgm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qkpgm/erzfy/hznlg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qkpgm/schedules/erzfy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/duhjf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/duhjf/sdefn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/duhjf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/duhjf/sdefn/bwmkd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/duhjf/schedules/sdefn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qubry')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qubry/qldxh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qubry')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qubry/qldxh/ovpix')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qubry/schedules/qldxh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zumcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zumcs/rfqxa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zumcs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zumcs/rfqxa/bvode')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zumcs/schedules/rfqxa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/esmuc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/esmuc/bofuk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/esmuc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/esmuc/bofuk/jfyyb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/esmuc/schedules/bofuk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lmvps')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lmvps/ofvai')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lmvps')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lmvps/ofvai/cjrvj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lmvps/schedules/ofvai')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eqfyk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eqfyk/ziirc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eqfyk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eqfyk/ziirc/evidx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eqfyk/schedules/ziirc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bwcgo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bwcgo/vbefk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bwcgo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bwcgo/vbefk/zscmr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bwcgo/schedules/vbefk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mzrbf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mzrbf/kcaxn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mzrbf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mzrbf/kcaxn/dcyts')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mzrbf/schedules/kcaxn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/whpmy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/whpmy/bxsno')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/whpmy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/whpmy/bxsno/whqbn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/whpmy/schedules/bxsno')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zgyhk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zgyhk/qldea')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zgyhk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zgyhk/qldea/mrsfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zgyhk/schedules/qldea')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hnskj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hnskj/pdikq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hnskj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hnskj/pdikq/hdxzw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hnskj/schedules/pdikq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qneiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qneiy/thwiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qneiy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qneiy/thwiv/wnmuy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qneiy/schedules/thwiv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tdlfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tdlfn/qtrtk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tdlfn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tdlfn/qtrtk/wtdqb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tdlfn/schedules/qtrtk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uxyht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uxyht/pgtoq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uxyht')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uxyht/pgtoq/lfted')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uxyht/schedules/pgtoq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mxvwd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mxvwd/qpfhm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mxvwd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mxvwd/qpfhm/zewet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mxvwd/schedules/qpfhm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jvytk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jvytk/dhnvo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jvytk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jvytk/dhnvo/pfogc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jvytk/schedules/dhnvo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wphtb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wphtb/mngae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wphtb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wphtb/mngae/nyuuy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wphtb/schedules/mngae')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/samqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/samqp/tnpdd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/samqp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/samqp/tnpdd/iusbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/samqp/schedules/tnpdd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvqbo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvqbo/puoyq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvqbo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvqbo/puoyq/nsyhg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvqbo/schedules/puoyq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/sfrbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wczsq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/skwzx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jfvbo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/flrhv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bdwrj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ozuzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rpawd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ktmkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kvoub')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wunzd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vrtbb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zujmr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qdodo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jiaja')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hcjhr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oqlkn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/khawx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ktsrb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lynqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vmmpb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mpegy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dkcam')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wxhlv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebserverfarms.json index 70168cbf..aab9e79c 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hbpgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hbpgt/itwcz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hbpgt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hbpgt/itwcz/robia')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hbpgt/schedules/itwcz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvyao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvyao/ckwjj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvyao')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvyao/ckwjj/qdsnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvyao/schedules/ckwjj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lqunc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lqunc/wbwvl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lqunc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lqunc/wbwvl/ggrux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lqunc/schedules/wbwvl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zlasq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zlasq/faqiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zlasq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zlasq/faqiy/cytwf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zlasq/schedules/faqiy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/otbnm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fsuhm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jhfqv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fegdl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebsites.json index 00d03abb..0d6bbc7d 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/scddx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/scddx/csoau')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/scddx')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/scddx/csoau/mbfic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/scddx/schedules/csoau')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oiwlf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oiwlf/fjvns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oiwlf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oiwlf/fjvns/iahiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oiwlf/schedules/fjvns')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/yjkas')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aosdj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/application.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/application.json index 5e4b6538..c405ace7 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/application.json @@ -1,1069 +1,1010 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.0.0/XM/addons/Monitoring/nested/integration.json b/Sitecore 9.0.0/XM/addons/Monitoring/nested/integration.json index 08af452f..f850c39c 100644 --- a/Sitecore 9.0.0/XM/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.0/XM/addons/Monitoring/nested/integration.json @@ -1,177 +1,183 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/README.md b/Sitecore 9.0.0/XP/addons/Monitoring/README.md index ac2df5e9..ad342a42 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/README.md +++ b/Sitecore 9.0.0/XP/addons/Monitoring/README.md @@ -8,7 +8,8 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group +| omsWorkspaceSku | The price tier of the provisioned OMS. | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. @@ -25,10 +26,11 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , - "omsWorkspaceAlertRecipients" : "", - "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "" + "omsWorkspaceSku" : "", + "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceAlertRecipients" : "", + "omsWorkspaceLocation" : "", + "applicationInsightsLocation" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.0/XP/addons/Monitoring/azuredeploy.json index 1bdfbaab..fb11e2ba 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertcacheredis.json index 416b9e1f..20620c62 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nsvji')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nsvji/ukgic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nsvji')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nsvji/ukgic/whrdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nsvji/schedules/ukgic')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/bitvq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json index 84a5dcb5..74046798 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/etiys')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/etiys/guckx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/etiys')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/etiys/guckx/ikoqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/etiys/schedules/guckx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/zksfs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json index 8c4e282e..69e2b564 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,5368 +1,4583 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pnpol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pnpol/ciyld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pnpol')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pnpol/ciyld/cudkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pnpol/schedules/ciyld')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hbpcj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hbpcj/krxka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hbpcj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hbpcj/krxka/vtfqo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hbpcj/schedules/krxka')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/apsiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/apsiy/ekxnv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/apsiy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/apsiy/ekxnv/fnqga')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/apsiy/schedules/ekxnv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhfsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhfsu/pfeng')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhfsu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhfsu/pfeng/bzuin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhfsu/schedules/pfeng')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qihpc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qihpc/sorxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qihpc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qihpc/sorxg/chpxv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qihpc/schedules/sorxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/stnix')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/stnix/rngdm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/stnix')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/stnix/rngdm/peznk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/stnix/schedules/rngdm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tmobn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tmobn/fkqjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tmobn')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tmobn/fkqjv/qdsdk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tmobn/schedules/fkqjv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oldfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oldfq/swzaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oldfq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oldfq/swzaj/nydsg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oldfq/schedules/swzaj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jfjvg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jfjvg/hbwop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jfjvg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jfjvg/hbwop/ggsrj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jfjvg/schedules/hbwop')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oikpn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oikpn/aznmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oikpn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oikpn/aznmv/qpkjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oikpn/schedules/aznmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lhwkt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lhwkt/hitnz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lhwkt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lhwkt/hitnz/vdlxj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lhwkt/schedules/hitnz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ktagj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ktagj/uodgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ktagj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ktagj/uodgx/hnbam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ktagj/schedules/uodgx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fysnn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fysnn/qgndo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fysnn')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fysnn/qgndo/qrayh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fysnn/schedules/qgndo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kgedz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kgedz/yiife')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kgedz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kgedz/yiife/igivk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kgedz/schedules/yiife')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jbdii')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jbdii/qzwjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jbdii')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jbdii/qzwjz/tnyan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jbdii/schedules/qzwjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vdxpr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vdxpr/aljxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vdxpr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vdxpr/aljxw/ljbxs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vdxpr/schedules/aljxw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ypycj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ypycj/iaroj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ypycj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ypycj/iaroj/bwztf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ypycj/schedules/iaroj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yojjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yojjm/tlduv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yojjm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yojjm/tlduv/qmdha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yojjm/schedules/tlduv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ehmts')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ehmts/uaeox')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ehmts')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ehmts/uaeox/rbwlk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ehmts/schedules/uaeox')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yivbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yivbp/gvqwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yivbp')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yivbp/gvqwz/jgfgz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yivbp/schedules/gvqwz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cxytp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cxytp/mbkol')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cxytp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cxytp/mbkol/nkeug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cxytp/schedules/mbkol')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jithl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jithl/jwful')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jithl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jithl/jwful/dylnq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jithl/schedules/jwful')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jsioz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jsioz/hffiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jsioz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jsioz/hffiw/xkbsq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jsioz/schedules/hffiw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fekov')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fekov/kpizt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fekov')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fekov/kpizt/mpomk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fekov/schedules/kpizt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oucmw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oucmw/rgtbb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oucmw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oucmw/rgtbb/mtacj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oucmw/schedules/rgtbb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rsapk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rsapk/dvxpd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rsapk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rsapk/dvxpd/kxhar')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rsapk/schedules/dvxpd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oprbc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oprbc/qnoka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oprbc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oprbc/qnoka/yutxo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oprbc/schedules/qnoka')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hrxkm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hrxkm/ixfjt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hrxkm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hrxkm/ixfjt/vxqfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hrxkm/schedules/ixfjt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sdzkv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sdzkv/wishz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sdzkv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sdzkv/wishz/curto')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sdzkv/schedules/wishz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/umboa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/umboa/svecu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/umboa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/umboa/svecu/qfris')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/umboa/schedules/svecu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yaije')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yaije/yjksy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yaije')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yaije/yjksy/kwhqo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yaije/schedules/yjksy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sxeyf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sxeyf/jnapg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sxeyf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sxeyf/jnapg/rhdux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sxeyf/schedules/jnapg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eqgjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eqgjd/hjbnx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eqgjd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eqgjd/hjbnx/oqexl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eqgjd/schedules/hjbnx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/syawz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syawz/tebbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syawz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syawz/tebbp/bpihi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syawz/schedules/tebbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flbxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flbxm/rdeqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flbxm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flbxm/rdeqz/ukjzv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flbxm/schedules/rdeqz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zwcyi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zwcyi/iwcvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zwcyi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zwcyi/iwcvt/tyurs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zwcyi/schedules/iwcvt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jnhro')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jnhro/ymonw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jnhro')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jnhro/ymonw/zayxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jnhro/schedules/ymonw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uqebe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uqebe/ynpkp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uqebe')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqebe/ynpkp/blgzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uqebe/schedules/ynpkp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tltiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tltiu/ripsh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tltiu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tltiu/ripsh/dhxlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tltiu/schedules/ripsh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cdcaw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cdcaw/wlrlc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cdcaw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cdcaw/wlrlc/emvsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cdcaw/schedules/wlrlc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pquhw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pquhw/sgddx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pquhw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pquhw/sgddx/lblga')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pquhw/schedules/sgddx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/expts')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/expts/zkqrj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/expts')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/expts/zkqrj/upioc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/expts/schedules/zkqrj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wtooc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wtooc/kfpel')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wtooc')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wtooc/kfpel/avmgj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wtooc/schedules/kfpel')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/odxmk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/odxmk/qabku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/odxmk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/odxmk/qabku/yuhvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/odxmk/schedules/qabku')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/medxt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/medxt/ncwjs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/medxt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/medxt/ncwjs/zcdgo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/medxt/schedules/ncwjs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bcswl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bcswl/xusws')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bcswl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bcswl/xusws/ivsts')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bcswl/schedules/xusws')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nkgof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nkgof/mjypu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nkgof')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nkgof/mjypu/hczxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nkgof/schedules/mjypu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xcjju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xcjju/wkgoc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xcjju')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xcjju/wkgoc/agemt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xcjju/schedules/wkgoc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/liwne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/liwne/jeibj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/liwne')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/liwne/jeibj/xqrmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/liwne/schedules/jeibj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvini')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvini/ozffl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvini')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvini/ozffl/mgahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvini/schedules/ozffl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gsgqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gsgqj/qhpui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gsgqj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gsgqj/qhpui/xnaun')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gsgqj/schedules/qhpui')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ohrmb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ohrmb/rcyiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ohrmb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ohrmb/rcyiv/fvlde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ohrmb/schedules/rcyiv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cmedh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cmedh/csqlr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cmedh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cmedh/csqlr/anhli')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cmedh/schedules/csqlr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ffkxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ffkxw/ugrdg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ffkxw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ffkxw/ugrdg/ktpix')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ffkxw/schedules/ugrdg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/slhap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/slhap/gsjoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/slhap')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/slhap/gsjoy/iaeio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/slhap/schedules/gsjoy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ewxzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ewxzt/uyois')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ewxzt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ewxzt/uyois/vfzxs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ewxzt/schedules/uyois')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/woqpa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/woqpa/dscbe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/woqpa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/woqpa/dscbe/dgxmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/woqpa/schedules/dscbe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vcirr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vcirr/ztfjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vcirr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vcirr/ztfjh/dnaru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vcirr/schedules/ztfjh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ryepq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ryepq/bpqmw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ryepq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ryepq/bpqmw/xwlxi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ryepq/schedules/bpqmw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lafji')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lafji/bejpp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lafji')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lafji/bejpp/rgaxa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lafji/schedules/bejpp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nwcjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nwcjz/ymifw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nwcjz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nwcjz/ymifw/uqtcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nwcjz/schedules/ymifw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gxpoe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gxpoe/bolql')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gxpoe')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gxpoe/bolql/jknad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gxpoe/schedules/bolql')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kzidf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kzidf/xcmjs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kzidf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kzidf/xcmjs/jexfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kzidf/schedules/xcmjs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jyfdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jyfdi/ngqew')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jyfdi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jyfdi/ngqew/kuvrr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jyfdi/schedules/ngqew')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bovzg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bovzg/jhiok')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bovzg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bovzg/jhiok/fjstq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bovzg/schedules/jhiok')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ghfow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ghfow/kmzzi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ghfow')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ghfow/kmzzi/akwvi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ghfow/schedules/kmzzi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zfzfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zfzfp/avinv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zfzfp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zfzfp/avinv/bebvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zfzfp/schedules/avinv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wjyul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wjyul/fdduf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wjyul')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wjyul/fdduf/jdosx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wjyul/schedules/fdduf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vbsta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vbsta/ackgp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vbsta')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vbsta/ackgp/rdzbj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vbsta/schedules/ackgp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lkbfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lkbfh/maipd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lkbfh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lkbfh/maipd/dyiub')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lkbfh/schedules/maipd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afabo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afabo/tjemc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afabo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afabo/tjemc/dxhud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afabo/schedules/tjemc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kxysc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kxysc/tzpke')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kxysc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kxysc/tzpke/phboc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kxysc/schedules/tzpke')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/fpnqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/psrmb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vouxy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/skrxq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/umjyq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/asqzv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/whzup')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gwpxq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lrfrh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lmasb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rhdtb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iexly')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rgfzx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aiemi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xownc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxhjl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lbymt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qeuav')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qokfx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ymhdx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/raxhy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qdyol')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hsnlq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ahuez')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dglsb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mqizb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qkxrg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jzhlh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ievtb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfzvd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lopmd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kcvvj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnzqg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sbiog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vovhg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mblzi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lugtd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cwasg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jsudq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bffzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sraaj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vlrkx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vmcch')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nhwzq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cjtwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wjbot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sulce')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvzcz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/icvhh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njuph')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/agpjb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ayxme')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfyrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gcdvs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cmxor')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bouua')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mbrgh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fxvio')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wzptg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fblrb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/obfgt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/elzwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rjyvp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/izegz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/drbwy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/elobf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jsuuy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ituvg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gqjzw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ylaem')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lebrj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iwtih')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebserverfarms.json index 1e00810b..28e628dc 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,928 +1,803 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ydkva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ydkva/rodft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ydkva')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ydkva/rodft/zrsjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ydkva/schedules/rodft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/prbum')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/prbum/bvcij')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/prbum')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/prbum/bvcij/gwtpl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/prbum/schedules/bvcij')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qpvyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qpvyt/pkfiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qpvyt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qpvyt/pkfiw/ucwdh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qpvyt/schedules/pkfiw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pviab')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pviab/fpsir')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pviab')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pviab/fpsir/aptdm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pviab/schedules/fpsir')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cbyqu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cbyqu/sfjrj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cbyqu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cbyqu/sfjrj/zzkul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cbyqu/schedules/sfjrj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbjdv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbjdv/mevbl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbjdv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbjdv/mevbl/vhgyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbjdv/schedules/mevbl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/etjsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/etjsj/rhtmd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/etjsj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/etjsj/rhtmd/usamt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/etjsj/schedules/rhtmd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/inbey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/inbey/rutdv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/inbey')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/inbey/rutdv/dypqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/inbey/schedules/rutdv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mvyer')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mvyer/oulmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mvyer')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mvyer/oulmf/hisqa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mvyer/schedules/oulmf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pwqmn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pwqmn/sevcz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pwqmn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pwqmn/sevcz/byvrc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pwqmn/schedules/sevcz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qswdy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qswdy/mvfqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qswdy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qswdy/mvfqg/heurc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qswdy/schedules/mvfqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lbclz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lbclz/vyhwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lbclz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lbclz/vyhwz/eibwp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lbclz/schedules/vyhwz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jfnph')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odcpv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zlngr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/puksv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rilus')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cmjnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nlccl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jgpav')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpzqw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nylde')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rzkbs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wvxop')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebsites.json index 762b1e46..85b5fed5 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/alertwebsites.json @@ -1,706 +1,614 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pzavb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pzavb/gexin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pzavb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pzavb/gexin/tlvov')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pzavb/schedules/gexin')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xeeoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xeeoi/fpucn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xeeoi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xeeoi/fpucn/igosc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xeeoi/schedules/fpucn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/empuu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/empuu/oycrg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/empuu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/empuu/oycrg/twuri')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/empuu/schedules/oycrg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tdgfv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tdgfv/gpskh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tdgfv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tdgfv/gpskh/tmwxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tdgfv/schedules/gpskh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bafyp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bafyp/kqach')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bafyp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bafyp/kqach/brfzw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bafyp/schedules/kqach')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mncst')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mncst/mevua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mncst')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mncst/mevua/vjirr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mncst/schedules/mevua')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xescl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xescl/vgaaz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xescl')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xescl/vgaaz/kcgai')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xescl/schedules/vgaaz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/izair')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/izair/zsrfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/izair')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/izair/zsrfh/asrcg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/izair/schedules/zsrfh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/igtnv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/igtnv/zqrfx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/igtnv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/igtnv/zqrfx/xyfar')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/igtnv/schedules/zqrfx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/bamxw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zrvtn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mkqnu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qbxke')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fvaxz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yryjk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kjidi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mapfc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qyelo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/application.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/application.json index 9b4db45e..4816e47f 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/application.json @@ -1,2494 +1,2340 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 9.0.0/XP/addons/Monitoring/nested/integration.json b/Sitecore 9.0.0/XP/addons/Monitoring/nested/integration.json index d0940139..f7e67828 100644 --- a/Sitecore 9.0.0/XP/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.0/XP/addons/Monitoring/nested/integration.json @@ -1,462 +1,468 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/README.md b/Sitecore 9.0.1/XDB/addons/Monitoring/README.md index c497ccc8..5e410564 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/README.md +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/README.md @@ -8,7 +8,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group +| deploymentId | The prefix of the Sitecore resources names within a resource group. | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.json index 4d22fe52..b1ff7c79 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.json @@ -1,299 +1,329 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.parameters.json index a1796662..d548de05 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json index 81a15084..6bca8ddd 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lokud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lokud/rtkcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lokud')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lokud/rtkcs/ioshy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lokud/schedules/rtkcs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/yiqju')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json index af3a5a89..a357a254 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,5368 +1,4583 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tskke')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tskke/jspoa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tskke')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tskke/jspoa/rhxaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tskke/schedules/jspoa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xuhjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xuhjv/vuwpb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xuhjv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xuhjv/vuwpb/drckc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xuhjv/schedules/vuwpb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jrsza')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jrsza/psztk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jrsza')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jrsza/psztk/jpvtc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jrsza/schedules/psztk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xybqe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xybqe/gvzsh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xybqe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xybqe/gvzsh/jbfxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xybqe/schedules/gvzsh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cxlps')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cxlps/hlgva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cxlps')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cxlps/hlgva/fpaws')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cxlps/schedules/hlgva')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zlvwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zlvwh/cxmai')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zlvwh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zlvwh/cxmai/uwxue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zlvwh/schedules/cxmai')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qzvhm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qzvhm/fzjqh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qzvhm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qzvhm/fzjqh/puzmn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qzvhm/schedules/fzjqh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/euwpe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/euwpe/penni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/euwpe')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/euwpe/penni/gnybq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/euwpe/schedules/penni')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vvlgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vvlgc/xujqe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vvlgc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vvlgc/xujqe/demxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vvlgc/schedules/xujqe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xofad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xofad/kguka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xofad')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xofad/kguka/sarid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xofad/schedules/kguka')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/imrkd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/imrkd/qcayt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/imrkd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/imrkd/qcayt/cpkqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/imrkd/schedules/qcayt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybisz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybisz/wpxne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybisz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybisz/wpxne/yyioj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybisz/schedules/wpxne')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ykohm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ykohm/upzft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ykohm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ykohm/upzft/hovxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ykohm/schedules/upzft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hqndg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hqndg/jfhwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hqndg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hqndg/jfhwj/dvoqb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hqndg/schedules/jfhwj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uldhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uldhi/wcpwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uldhi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uldhi/wcpwv/zymae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uldhi/schedules/wcpwv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/finth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/finth/fbfom')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/finth')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/finth/fbfom/stifx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/finth/schedules/fbfom')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ovpba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ovpba/ssuhh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ovpba')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ovpba/ssuhh/bibad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ovpba/schedules/ssuhh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbiks')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbiks/gbrqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbiks')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbiks/gbrqn/yivmm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbiks/schedules/gbrqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wcbhr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wcbhr/tmeba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wcbhr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wcbhr/tmeba/niuvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wcbhr/schedules/tmeba')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/whjtm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/whjtm/uaphl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/whjtm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/whjtm/uaphl/ykibz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/whjtm/schedules/uaphl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rxukv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rxukv/dpzam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rxukv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rxukv/dpzam/tlaml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rxukv/schedules/dpzam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dltpe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dltpe/yxndz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dltpe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dltpe/yxndz/iackd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dltpe/schedules/yxndz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gnmjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gnmjl/tronz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gnmjl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gnmjl/tronz/semco')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gnmjl/schedules/tronz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tmqlz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tmqlz/fdoca')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tmqlz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tmqlz/fdoca/rpomp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tmqlz/schedules/fdoca')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mdnfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mdnfu/gcbrm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mdnfu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mdnfu/gcbrm/wkvzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mdnfu/schedules/gcbrm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fxyat')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fxyat/gksru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fxyat')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fxyat/gksru/pozlg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fxyat/schedules/gksru')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ezsxb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ezsxb/zqeum')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ezsxb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ezsxb/zqeum/tuhly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ezsxb/schedules/zqeum')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pvhry')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pvhry/ywsta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pvhry')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pvhry/ywsta/nzsho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pvhry/schedules/ywsta')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bvijh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bvijh/bidjf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bvijh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bvijh/bidjf/dubgw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bvijh/schedules/bidjf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ujesy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ujesy/zirpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ujesy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ujesy/zirpu/cipbz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ujesy/schedules/zirpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rpjic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rpjic/leguc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rpjic')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rpjic/leguc/hhiyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rpjic/schedules/leguc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jimxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jimxz/rqsrs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jimxz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jimxz/rqsrs/wdvca')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jimxz/schedules/rqsrs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cizym')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cizym/hkmas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cizym')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cizym/hkmas/igqeh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cizym/schedules/hkmas')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/udqyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/udqyo/yfuhw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/udqyo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/udqyo/yfuhw/adgzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/udqyo/schedules/yfuhw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/efqyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/efqyt/yrpos')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/efqyt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/efqyt/yrpos/nqcua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/efqyt/schedules/yrpos')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djxav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djxav/oxqau')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djxav')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djxav/oxqau/lxsqb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djxav/schedules/oxqau')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wqhbv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wqhbv/harad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wqhbv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wqhbv/harad/tfmxe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wqhbv/schedules/harad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lyoiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lyoiw/lymmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lyoiw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lyoiw/lymmi/ngqic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lyoiw/schedules/lymmi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nhzib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nhzib/cvsmw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nhzib')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nhzib/cvsmw/piimf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nhzib/schedules/cvsmw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bqgeq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bqgeq/eqikh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bqgeq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bqgeq/eqikh/zkgsi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bqgeq/schedules/eqikh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ggued')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ggued/ugjmk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ggued')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ggued/ugjmk/kiozs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ggued/schedules/ugjmk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wfsfx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wfsfx/arolx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wfsfx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wfsfx/arolx/yaycb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wfsfx/schedules/arolx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mhxsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mhxsw/bicdg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mhxsw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mhxsw/bicdg/uioly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mhxsw/schedules/bicdg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mcifd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mcifd/xeimr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mcifd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mcifd/xeimr/jrfdh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mcifd/schedules/xeimr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/banqc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/banqc/taayp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/banqc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/banqc/taayp/orztc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/banqc/schedules/taayp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lngte')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lngte/nprci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lngte')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lngte/nprci/gnzpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lngte/schedules/nprci')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ctdrc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ctdrc/ideyk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ctdrc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ctdrc/ideyk/kswrl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ctdrc/schedules/ideyk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gxcjw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gxcjw/ecqgg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gxcjw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gxcjw/ecqgg/aykez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gxcjw/schedules/ecqgg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bmcei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bmcei/xboyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bmcei')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bmcei/xboyg/kmyof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bmcei/schedules/xboyg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jlduf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jlduf/esixw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jlduf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jlduf/esixw/woetk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jlduf/schedules/esixw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mrbnv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mrbnv/ejvvk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mrbnv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mrbnv/ejvvk/vekzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mrbnv/schedules/ejvvk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lpcng')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lpcng/qrzgq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lpcng')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lpcng/qrzgq/znsdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lpcng/schedules/qrzgq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cfsiq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cfsiq/efuyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cfsiq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cfsiq/efuyr/yiqou')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cfsiq/schedules/efuyr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/raxib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/raxib/wxsml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/raxib')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/raxib/wxsml/oymrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/raxib/schedules/wxsml')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qdibg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qdibg/flkpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qdibg')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qdibg/flkpu/cwkvr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qdibg/schedules/flkpu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xrhef')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xrhef/jptku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xrhef')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xrhef/jptku/wdjuy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xrhef/schedules/jptku')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ombes')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ombes/bcjop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ombes')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ombes/bcjop/pdyew')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ombes/schedules/bcjop')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cewgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cewgd/onlsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cewgd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cewgd/onlsx/zmypq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cewgd/schedules/onlsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pjicx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pjicx/urisk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pjicx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pjicx/urisk/dfyrt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pjicx/schedules/urisk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/msawk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/msawk/iutfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/msawk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/msawk/iutfz/fjanh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/msawk/schedules/iutfz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fmhfv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fmhfv/kuoyz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fmhfv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fmhfv/kuoyz/zxevp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fmhfv/schedules/kuoyz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pclas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pclas/bepcn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pclas')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pclas/bepcn/umsgm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pclas/schedules/bepcn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cghld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cghld/ciaqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cghld')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cghld/ciaqg/oznct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cghld/schedules/ciaqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jmlin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jmlin/etpuo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jmlin')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jmlin/etpuo/vtqsg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jmlin/schedules/etpuo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hkyhc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hkyhc/yxbgw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hkyhc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hkyhc/yxbgw/qvjcg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hkyhc/schedules/yxbgw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/upswr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/upswr/ebqnt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/upswr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/upswr/ebqnt/yexja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/upswr/schedules/ebqnt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/goibw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/goibw/qumft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/goibw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/goibw/qumft/jsatd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/goibw/schedules/qumft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/osmbx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/osmbx/mjtal')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/osmbx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/osmbx/mjtal/wehuo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/osmbx/schedules/mjtal')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pfftd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pfftd/qkgpv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pfftd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pfftd/qkgpv/pgqdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pfftd/schedules/qkgpv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gstfg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gstfg/wscad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gstfg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gstfg/wscad/rtnnz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gstfg/schedules/wscad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vocgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vocgi/sivcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vocgi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vocgi/sivcs/svqyk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vocgi/schedules/sivcs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tsgsn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tsgsn/eiadq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tsgsn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tsgsn/eiadq/wtzsr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tsgsn/schedules/eiadq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/rxtzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmuik')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oinqd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pcane')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ztdjc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fybxo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ezgop')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oqrtl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pyaqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xzltp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jeime')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bbpgh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hucyi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rbgvk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lagmv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jfblg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mgeom')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zxdwr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tfapu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wfhxp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/elzyb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tviao')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlcwm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xmkup')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qjesy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pxxiw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vkmfc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bvkbm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ewpmh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gmkui')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/prwkv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcxkk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vpybe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oaory')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/clyab')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wfjmm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eymnh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iebgi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lyage')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/chyzx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ymfdp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iindj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kelax')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jbcps')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ufjzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/danox')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/izhdi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xpwzz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pfphc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ydgxm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bspkl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ehqvq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ggcjm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pxwnn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yinxi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hwplx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpann')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tiwxr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mzksv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zzbtk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nfskl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aivon')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wgzzf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zqiuc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rylmg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/daknd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ycsaz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tsjhn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucvia')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kuaxy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dgaes')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukoal')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json index 90b54348..af9d0da4 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dphmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dphmj/djxyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dphmj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dphmj/djxyt/tpqbd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dphmj/schedules/djxyt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aobpn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aobpn/abodg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aobpn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aobpn/abodg/xrutd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aobpn/schedules/abodg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/frnoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/frnoy/seepm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/frnoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/frnoy/seepm/tshme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/frnoy/schedules/seepm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vejcu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vejcu/vettg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vejcu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vejcu/vettg/dnorv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vejcu/schedules/vettg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/woywf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/woywf/nhtaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/woywf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/woywf/nhtaj/mxufo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/woywf/schedules/nhtaj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eodit')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eodit/gyvfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eodit')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eodit/gyvfo/ifynh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eodit/schedules/gyvfo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hucal')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hucal/ntkfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hucal')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hucal/ntkfq/copvl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hucal/schedules/ntkfq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yafrh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yafrh/trsey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yafrh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yafrh/trsey/tgokv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yafrh/schedules/trsey')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/zjdgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wiprf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/idcvq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onhiy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ybbwl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fibnm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nbqyy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ydahr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebsites.json index 1989893f..f7d607f5 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/alertwebsites.json @@ -1,558 +1,488 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qmucq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qmucq/algbj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qmucq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qmucq/algbj/fnteo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qmucq/schedules/algbj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qgayw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qgayw/vrmzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qgayw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qgayw/vrmzl/afhko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qgayw/schedules/vrmzl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vrden')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vrden/bhicx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vrden')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vrden/bhicx/zgdwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vrden/schedules/bhicx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vhceg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vhceg/dnlxb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vhceg')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vhceg/dnlxb/fbxja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vhceg/schedules/dnlxb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/omflv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/omflv/pqgbd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/omflv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/omflv/pqgbd/mlqep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/omflv/schedules/pqgbd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gfwrk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gfwrk/itzzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gfwrk')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gfwrk/itzzn/qfwed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gfwrk/schedules/itzzn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hsmdw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hsmdw/xfivw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hsmdw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hsmdw/xfivw/phsyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hsmdw/schedules/xfivw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jrxid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qjzso')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hznfw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zpaib')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sgkqv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hrifm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lcaem')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/application.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/application.json index 0b481afb..5cb99d8d 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/application.json @@ -1,2119 +1,1990 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-messaging-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/integration.json b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/integration.json index 11131b51..dd015a1c 100644 --- a/Sitecore 9.0.1/XDB/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.1/XDB/addons/Monitoring/nested/integration.json @@ -1,387 +1,393 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/README.md b/Sitecore 9.0.1/XM/addons/Monitoring/README.md index e918100e..c240d4d5 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/README.md +++ b/Sitecore 9.0.1/XM/addons/Monitoring/README.md @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.1/XM/addons/Monitoring/azuredeploy.json index 1bdfbaab..fb11e2ba 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertcacheredis.json index a049289e..24968a99 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gxqtk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gxqtk/bijca')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gxqtk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gxqtk/bijca/jzfrd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gxqtk/schedules/bijca')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/vhukn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json index d93512b1..c8f49532 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bmfld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bmfld/mcitg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bmfld')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bmfld/mcitg/tawsl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bmfld/schedules/mcitg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/otqki')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json index f82056cd..859bfcd0 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yakcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yakcv/lqctj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yakcv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yakcv/lqctj/zkkje')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yakcv/schedules/lqctj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flszq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flszq/kuaes')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flszq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flszq/kuaes/sfzpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flszq/schedules/kuaes')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hrsam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hrsam/cwxzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hrsam')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hrsam/cwxzn/kmrsg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hrsam/schedules/cwxzn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jkfsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jkfsp/xnlmo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jkfsp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jkfsp/xnlmo/isbko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jkfsp/schedules/xnlmo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/blcxt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/blcxt/ovaqc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/blcxt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/blcxt/ovaqc/udvgk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/blcxt/schedules/ovaqc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yfzaw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yfzaw/zxzmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yfzaw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yfzaw/zxzmf/vzgdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yfzaw/schedules/zxzmf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vkcvz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vkcvz/mwphk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vkcvz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vkcvz/mwphk/njjyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vkcvz/schedules/mwphk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rmqzo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rmqzo/qxnhf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rmqzo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rmqzo/qxnhf/wmiqe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rmqzo/schedules/qxnhf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/algpm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/algpm/luypv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/algpm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/algpm/luypv/laiwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/algpm/schedules/luypv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kfjax')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kfjax/pktko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kfjax')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kfjax/pktko/yqxew')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kfjax/schedules/pktko')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rezek')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rezek/xcjth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rezek')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rezek/xcjth/uvwbe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rezek/schedules/xcjth')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dkxhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dkxhi/igvnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dkxhi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dkxhi/igvnu/lcyvr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dkxhi/schedules/igvnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mktgb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mktgb/mrjou')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mktgb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mktgb/mrjou/omtfg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mktgb/schedules/mrjou')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vqzaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vqzaq/gqhap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vqzaq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vqzaq/gqhap/ombpn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vqzaq/schedules/gqhap')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mjung')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mjung/zknyi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mjung')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mjung/zknyi/ruocm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mjung/schedules/zknyi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zfila')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zfila/kwwth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zfila')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zfila/kwwth/yalhf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zfila/schedules/kwwth')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zesni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zesni/votzy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zesni')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zesni/votzy/cazmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zesni/schedules/votzy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uzbyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uzbyc/wtfls')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uzbyc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uzbyc/wtfls/ucbme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uzbyc/schedules/wtfls')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rvary')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rvary/nfcgl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rvary')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rvary/nfcgl/uylzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rvary/schedules/nfcgl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ezyjg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ezyjg/kldxs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ezyjg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ezyjg/kldxs/vamqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ezyjg/schedules/kldxs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xwaep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xwaep/gjkdy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xwaep')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xwaep/gjkdy/xwvsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xwaep/schedules/gjkdy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/strpd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/strpd/myosg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/strpd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/strpd/myosg/czheu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/strpd/schedules/myosg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zrtfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zrtfb/uoqed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zrtfb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zrtfb/uoqed/bypfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zrtfb/schedules/uoqed')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/prcft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/prcft/togyl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/prcft')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/prcft/togyl/gqnxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/prcft/schedules/togyl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/umxpk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/trgsj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tkvya')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bjzdv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dkwhm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/palur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rtppj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wcywi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lncqz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nbrlc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zeaaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qaazx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wadhi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ekrxj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iezbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zmrng')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vkpqs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yhjfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/altiv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cswnf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uncdw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ugntm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tditm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/byekh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebserverfarms.json index 59f2ee7c..734789b6 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/soupd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/soupd/shfmz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/soupd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/soupd/shfmz/axvjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/soupd/schedules/shfmz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lvqbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lvqbm/ubcvn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lvqbm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lvqbm/ubcvn/ksuny')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lvqbm/schedules/ubcvn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jcduf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jcduf/nlgiw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jcduf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jcduf/nlgiw/dayye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jcduf/schedules/nlgiw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tkcbm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tkcbm/cpmjt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tkcbm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tkcbm/cpmjt/atvbq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tkcbm/schedules/cpmjt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/wosfb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njjcz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pexev')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/feiok')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebsites.json index a3f08fb8..07b419b4 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bvfer')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bvfer/hgpjb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bvfer')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bvfer/hgpjb/rtfle')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bvfer/schedules/hgpjb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ajyvl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ajyvl/xjviw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ajyvl')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ajyvl/xjviw/sxpoc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ajyvl/schedules/xjviw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/walds')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ndxtx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/application.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/application.json index 5e4b6538..c405ace7 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/application.json @@ -1,1069 +1,1010 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 9.0.1/XM/addons/Monitoring/nested/integration.json b/Sitecore 9.0.1/XM/addons/Monitoring/nested/integration.json index 08af452f..f850c39c 100644 --- a/Sitecore 9.0.1/XM/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.1/XM/addons/Monitoring/nested/integration.json @@ -1,177 +1,183 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/README.md b/Sitecore 9.0.1/XP/addons/Monitoring/README.md index ac2df5e9..aff596e6 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/README.md +++ b/Sitecore 9.0.1/XP/addons/Monitoring/README.md @@ -8,7 +8,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. @@ -25,7 +25,7 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", "applicationInsightsLocation" : "" diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.json index 26963174..fb11e2ba 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.json @@ -1,325 +1,358 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.parameters.json index a1796662..d548de05 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertcacheredis.json index b7d40598..a85f2bd5 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qxnzh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qxnzh/wrhot')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qxnzh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qxnzh/wrhot/euxwq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qxnzh/schedules/wrhot')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/dwegs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json index 9748ffe5..1792762d 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mhmgn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mhmgn/ptjhh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mhmgn')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mhmgn/ptjhh/svgbf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mhmgn/schedules/ptjhh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/bigcv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json index 4e469e25..930882ee 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,6256 +1,5339 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jfrtf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jfrtf/loyxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jfrtf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jfrtf/loyxc/gecrt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jfrtf/schedules/loyxc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uqmgu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uqmgu/libji')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uqmgu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqmgu/libji/smjeh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uqmgu/schedules/libji')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ivzyw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ivzyw/qoctr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ivzyw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ivzyw/qoctr/bhxpg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ivzyw/schedules/qoctr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bnmkv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bnmkv/mhota')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bnmkv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bnmkv/mhota/kjxsb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bnmkv/schedules/mhota')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/znufs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/znufs/scgmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/znufs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/znufs/scgmj/qdbjj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/znufs/schedules/scgmj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ovezt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ovezt/utvuk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ovezt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ovezt/utvuk/kfbhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ovezt/schedules/utvuk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/njifu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/njifu/lbmvr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/njifu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/njifu/lbmvr/xuokv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/njifu/schedules/lbmvr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jtsse')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jtsse/fmbla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jtsse')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jtsse/fmbla/mhspn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jtsse/schedules/fmbla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wayyj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wayyj/tpzvg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wayyj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wayyj/tpzvg/mtyqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wayyj/schedules/tpzvg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gdapx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdapx/sfoul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdapx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdapx/sfoul/lsdwg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdapx/schedules/sfoul')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rgzvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rgzvy/pqsvc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rgzvy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rgzvy/pqsvc/zlhdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rgzvy/schedules/pqsvc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fwkqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fwkqm/wpqzs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fwkqm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fwkqm/wpqzs/slkdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fwkqm/schedules/wpqzs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fuqsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fuqsv/ymfmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fuqsv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fuqsv/ymfmi/mkzlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fuqsv/schedules/ymfmi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bwygj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bwygj/gxosi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bwygj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bwygj/gxosi/nceap')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bwygj/schedules/gxosi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qlcpj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qlcpj/kiebh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qlcpj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qlcpj/kiebh/zcixx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qlcpj/schedules/kiebh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tyecp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tyecp/qkrpa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tyecp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tyecp/qkrpa/kktju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tyecp/schedules/qkrpa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hcxmo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hcxmo/pmrzg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hcxmo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hcxmo/pmrzg/ilpaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hcxmo/schedules/pmrzg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/silrf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/silrf/stwru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/silrf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/silrf/stwru/gfevj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/silrf/schedules/stwru')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wgqoo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wgqoo/enibj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wgqoo')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wgqoo/enibj/lmqfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wgqoo/schedules/enibj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fxglu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fxglu/sklcy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fxglu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fxglu/sklcy/tyvcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fxglu/schedules/sklcy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/alrif')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/alrif/qkwsh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/alrif')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/alrif/qkwsh/sject')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/alrif/schedules/qkwsh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tcaaz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tcaaz/bixpq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tcaaz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tcaaz/bixpq/jvzip')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tcaaz/schedules/bixpq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mgbni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mgbni/gogab')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mgbni')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mgbni/gogab/bcirs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mgbni/schedules/gogab')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lesmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lesmv/ssnjr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lesmv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lesmv/ssnjr/xqhzo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lesmv/schedules/ssnjr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bayjf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bayjf/vzyrt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bayjf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bayjf/vzyrt/mgkrt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bayjf/schedules/vzyrt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mznvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mznvs/tgejb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mznvs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mznvs/tgejb/phmqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mznvs/schedules/tgejb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vqtjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vqtjn/htzrd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vqtjn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vqtjn/htzrd/awsic')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vqtjn/schedules/htzrd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/prlbl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/prlbl/mxrye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/prlbl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/prlbl/mxrye/ghilk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/prlbl/schedules/mxrye')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qnapk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qnapk/vrlks')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qnapk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qnapk/vrlks/dmoep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qnapk/schedules/vrlks')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ihjed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ihjed/gidsh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ihjed')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ihjed/gidsh/fmblu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ihjed/schedules/gidsh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mcvwh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mcvwh/wxekl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mcvwh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mcvwh/wxekl/olwyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mcvwh/schedules/wxekl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/srokt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/srokt/xbvrc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/srokt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/srokt/xbvrc/duvjb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/srokt/schedules/xbvrc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zqavh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zqavh/thnle')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zqavh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zqavh/thnle/hdpnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zqavh/schedules/thnle')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lbnil')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lbnil/ldurp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lbnil')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lbnil/ldurp/dlhpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lbnil/schedules/ldurp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qifqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qifqz/qrcyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qifqz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qifqz/qrcyo/nmpuo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qifqz/schedules/qrcyo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nfkxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nfkxy/dukud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nfkxy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nfkxy/dukud/nvmhk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nfkxy/schedules/dukud')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lnhjm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lnhjm/kopfg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lnhjm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lnhjm/kopfg/ybecw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lnhjm/schedules/kopfg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mpjoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mpjoy/rkwfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mpjoy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mpjoy/rkwfp/oeyag')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mpjoy/schedules/rkwfp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/srkdf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/srkdf/acdhw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/srkdf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/srkdf/acdhw/bnomp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/srkdf/schedules/acdhw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/utkyp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/utkyp/mdfru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/utkyp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/utkyp/mdfru/yifiq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/utkyp/schedules/mdfru')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ewmtg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ewmtg/hezos')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ewmtg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ewmtg/hezos/zscnd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ewmtg/schedules/hezos')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mbyqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mbyqj/whdoq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mbyqj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mbyqj/whdoq/vgfei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mbyqj/schedules/whdoq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/soerk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/soerk/qmpmb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/soerk')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/soerk/qmpmb/nypdm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/soerk/schedules/qmpmb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zknea')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zknea/namlo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zknea')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zknea/namlo/towsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zknea/schedules/namlo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fpmsk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fpmsk/nhdla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fpmsk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fpmsk/nhdla/vmikn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fpmsk/schedules/nhdla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uexkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uexkl/jyxhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uexkl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uexkl/jyxhi/zvcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uexkl/schedules/jyxhi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/khuda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/khuda/sfmin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/khuda')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/khuda/sfmin/zgxzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/khuda/schedules/sfmin')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/csurp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/csurp/ajbpj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/csurp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/csurp/ajbpj/zdkhv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/csurp/schedules/ajbpj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fqycz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fqycz/pekuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fqycz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fqycz/pekuf/remsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fqycz/schedules/pekuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ttkxq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ttkxq/rbwgk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ttkxq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ttkxq/rbwgk/olesi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ttkxq/schedules/rbwgk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/czxqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/czxqp/lmgdw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/czxqp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/czxqp/lmgdw/fsemg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/czxqp/schedules/lmgdw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wtkri')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wtkri/dmkpq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wtkri')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wtkri/dmkpq/ezdvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wtkri/schedules/dmkpq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yidsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yidsp/pygsa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yidsp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yidsp/pygsa/cjkjr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yidsp/schedules/pygsa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flubv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flubv/sczwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flubv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flubv/sczwu/zzpwj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flubv/schedules/sczwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xjbvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xjbvm/nrcml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xjbvm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xjbvm/nrcml/exhsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xjbvm/schedules/nrcml')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iiyzq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iiyzq/uaxpw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iiyzq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iiyzq/uaxpw/dqpwc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iiyzq/schedules/uaxpw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iaofr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iaofr/dmehc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iaofr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iaofr/dmehc/awmuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iaofr/schedules/dmehc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xlbvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xlbvs/sunbz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xlbvs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xlbvs/sunbz/opyig')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xlbvs/schedules/sunbz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/soysv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/soysv/urlzk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/soysv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/soysv/urlzk/npslj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/soysv/schedules/urlzk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/icleg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/icleg/faxtf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/icleg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/icleg/faxtf/stihh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/icleg/schedules/faxtf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pfbyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pfbyh/baawm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pfbyh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pfbyh/baawm/kbojg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pfbyh/schedules/baawm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cslgh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cslgh/bthns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cslgh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cslgh/bthns/ynxrz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cslgh/schedules/bthns')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dlzjn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dlzjn/pkqxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dlzjn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dlzjn/pkqxc/nldke')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dlzjn/schedules/pkqxc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hnoyj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hnoyj/zdjwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hnoyj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hnoyj/zdjwu/itwka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hnoyj/schedules/zdjwu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lugtv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lugtv/ydesv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lugtv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lugtv/ydesv/lytyw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lugtv/schedules/ydesv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uqisp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uqisp/mrnxq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uqisp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqisp/mrnxq/uddqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uqisp/schedules/mrnxq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/prvhx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/prvhx/ikrru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/prvhx')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/prvhx/ikrru/kqify')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/prvhx/schedules/ikrru')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ptxfw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ptxfw/gocva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ptxfw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ptxfw/gocva/byxep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ptxfw/schedules/gocva')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nlykc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nlykc/umblg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nlykc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nlykc/umblg/vtoep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nlykc/schedules/umblg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lsecv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lsecv/ztrlx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lsecv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lsecv/ztrlx/rwrtn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lsecv/schedules/ztrlx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rctdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rctdt/msulm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rctdt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rctdt/msulm/fgtkh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rctdt/schedules/msulm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vcbml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vcbml/bkmww')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vcbml')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vcbml/bkmww/htioc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vcbml/schedules/bkmww')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zlsdf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zlsdf/rcwjt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zlsdf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zlsdf/rcwjt/ropqe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zlsdf/schedules/rcwjt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vhctl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vhctl/vzlfw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vhctl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vhctl/vzlfw/fysjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vhctl/schedules/vzlfw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oruqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oruqz/vzshq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oruqz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oruqz/vzshq/ecqwc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oruqz/schedules/vzshq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ddkpb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ddkpb/kfyqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ddkpb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ddkpb/kfyqg/aoakh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ddkpb/schedules/kfyqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mxguc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mxguc/smhoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mxguc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mxguc/smhoi/absno')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mxguc/schedules/smhoi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jgtwv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jgtwv/jphze')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jgtwv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jgtwv/jphze/gbmrq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jgtwv/schedules/jphze')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wqpot')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wqpot/mlmdf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wqpot')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wqpot/mlmdf/pbyrq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wqpot/schedules/mlmdf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/euloy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/euloy/dvkye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/euloy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/euloy/dvkye/gjbpt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/euloy/schedules/dvkye')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vuowq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vuowq/qhmiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vuowq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vuowq/qhmiu/ngrfl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vuowq/schedules/qhmiu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ysjaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ysjaq/wkyfi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ysjaq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ysjaq/wkyfi/rwcwr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ysjaq/schedules/wkyfi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aeokn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aeokn/ebdfk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aeokn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aeokn/ebdfk/hpmww')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aeokn/schedules/ebdfk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pleow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pleow/amokj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pleow')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pleow/amokj/dwbqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pleow/schedules/amokj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gbmqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xcqvo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hjuoc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lbxjy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wguid')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/svrrh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hegvp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/okcmo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xcrnc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xbnfx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ujqoh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sqacs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxqox')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfmgw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gvceo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ixolp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mbxkr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bnosc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hfaoy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/myxil')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cypga')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jeiqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lhjpl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ruaud')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mcvzk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kawrq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aiosv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gwupj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wkcoq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kegjd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ramif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ryckt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cumti')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dgpoq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzliq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nkjuf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gzspb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kjotx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fydex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zoiyk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/amtyo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ozdmk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/osezd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xhzwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xmdlj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ftezl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dfoog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/atgpy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vpgbt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tkzim')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mvjca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vuznm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnpwg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/swfod')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pkeyc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/utdqz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nikjl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zbmlg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oqgyl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nmpzr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/flekc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/injlr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lxhcu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vfzax')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ehlde')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dqpdn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ocisa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dcmkl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ujdxc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mrqde')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bjzdl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jlmrf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lzwsx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/swuao')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uambg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlrwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odnzm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dtspq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sltbh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rybex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tyrca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nbxew')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/txnff')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/znyqk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebserverfarms.json index 88b0fcde..7ccb4950 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,928 +1,803 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hrqjx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hrqjx/vdgiq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hrqjx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hrqjx/vdgiq/dndia')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hrqjx/schedules/vdgiq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vabho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vabho/fqcsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vabho')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vabho/fqcsw/kogat')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vabho/schedules/fqcsw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fsocn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fsocn/bozwq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fsocn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fsocn/bozwq/gbxps')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fsocn/schedules/bozwq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/opiae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/opiae/hxnck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/opiae')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/opiae/hxnck/vtrex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/opiae/schedules/hxnck')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pqkyb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pqkyb/bnieo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pqkyb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pqkyb/bnieo/lisky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pqkyb/schedules/bnieo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eqbiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eqbiu/oebfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eqbiu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eqbiu/oebfu/slyrg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eqbiu/schedules/oebfu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jhibv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jhibv/glpfk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jhibv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jhibv/glpfk/zrsko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jhibv/schedules/glpfk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mnsyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mnsyv/rktli')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mnsyv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mnsyv/rktli/fmaxs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mnsyv/schedules/rktli')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/baqgn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/baqgn/mireq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/baqgn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/baqgn/mireq/vjbva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/baqgn/schedules/mireq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vhypk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vhypk/osruc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vhypk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vhypk/osruc/lqlyz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vhypk/schedules/osruc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/goxte')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/goxte/zcaqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/goxte')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/goxte/zcaqi/ptynj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/goxte/schedules/zcaqi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qdzof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qdzof/wkzfj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qdzof')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qdzof/wkzfj/zpwty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qdzof/schedules/wkzfj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xwtdv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yzcgf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fjgrm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/okrmd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mjpoh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/idvyw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zjvmk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pegrj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ycnuq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ntrqs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qexgl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/huypk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebsites.json index bb22bb2b..73bb1f66 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/alertwebsites.json @@ -1,706 +1,614 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/famrb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/famrb/qgjxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/famrb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/famrb/qgjxr/sxslp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/famrb/schedules/qgjxr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqdko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqdko/phauh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqdko')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqdko/phauh/stwme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqdko/schedules/phauh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dapyp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dapyp/jdqtl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dapyp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dapyp/jdqtl/jukdf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dapyp/schedules/jdqtl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ibkmq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ibkmq/mqgrq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ibkmq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ibkmq/mqgrq/ntdof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ibkmq/schedules/mqgrq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/anlov')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/anlov/hngxj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/anlov')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/anlov/hngxj/xanup')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/anlov/schedules/hngxj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ialgm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ialgm/gcdbl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ialgm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ialgm/gcdbl/zafbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ialgm/schedules/gcdbl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kwwkl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kwwkl/tyalm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kwwkl')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kwwkl/tyalm/zpwmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kwwkl/schedules/tyalm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/umchk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/umchk/imyld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/umchk')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/umchk/imyld/psxgz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/umchk/schedules/imyld')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/moexh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/moexh/zihxd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/moexh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/moexh/zihxd/ljwru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/moexh/schedules/zihxd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gechn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qeakx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/obhrb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aqwln')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/esgrd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tccay')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pakiw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xthjw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iftks')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/application.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/application.json index 26e1b9b1..7706d0eb 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/application.json @@ -1,2644 +1,2480 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-messaging-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/infrastructure.json index 6ed3ec5b..aa8f0ee5 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/infrastructure.json @@ -2,21 +2,17 @@ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - } - }, "extension": { "type": "secureObject", - "defaultValue": { + "defaultValue": { "omsWorkspaceMetricsRetentionDays": null, "omsWorkspaceLocation": null, "omsWorkspaceAlertRecipients": null } }, "deploymentId": { - "type": "string" + "type": "string", + "defaultValue": "[resourceGroup().name]" }, "omsWorkspaceMetricsRetentionDays": { "type": "int", @@ -28,7 +24,16 @@ "omsWorkspaceLocation": { "type": "string", "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ "Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe" ], + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], "metadata": { "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" } @@ -39,15 +44,24 @@ "metadata": { "Description": "List of recipients for the email alert separated by semicolon" } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" } }, - "variables": { "subscription": "[subscription().subscriptionId]", "sitecoreResourceGroup": "[resourceGroup().name]", "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", "omsWorkspaceApiVersion": "2017-03-15-preview", "omsWorkspaceSku": "standalone", "actionGroupApiVersion": "2018-03-01", @@ -83,7 +97,8 @@ "count": "[length(variables('recipientsEmailsArray'))]", "input": { "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true } } ] diff --git a/Sitecore 9.0.1/XP/addons/Monitoring/nested/integration.json b/Sitecore 9.0.1/XP/addons/Monitoring/nested/integration.json index f58a6827..823d1dc2 100644 --- a/Sitecore 9.0.1/XP/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.1/XP/addons/Monitoring/nested/integration.json @@ -1,492 +1,498 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/README.md b/Sitecore 9.0.2/XDB/addons/Monitoring/README.md index d1f20eb0..303f39af 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/README.md +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/README.md @@ -13,7 +13,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -26,11 +26,11 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.json index 6933a97f..3ca88097 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.json @@ -1,312 +1,334 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "xcSolrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "xcSolrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsearchsearchservices.json index 35faf0d3..a75130c6 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zzvsi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zzvsi/yibuu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zzvsi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zzvsi/yibuu/fmjjb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zzvsi/schedules/yibuu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ikucr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json index 03e08f3a..d127a96f 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,5368 +1,4583 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nmufp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nmufp/vwdgn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nmufp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nmufp/vwdgn/orlrg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nmufp/schedules/vwdgn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/duhjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/duhjp/tbxow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/duhjp')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/duhjp/tbxow/xxyqm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/duhjp/schedules/tbxow')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dnlom')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dnlom/hmral')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dnlom')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dnlom/hmral/pbznr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dnlom/schedules/hmral')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kwsrh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kwsrh/vzxof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kwsrh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kwsrh/vzxof/vcbiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kwsrh/schedules/vzxof')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gqict')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gqict/iltvp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gqict')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gqict/iltvp/wkywn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gqict/schedules/iltvp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pgenc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pgenc/pueik')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pgenc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pgenc/pueik/vympd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pgenc/schedules/pueik')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ivprn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ivprn/hlvur')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ivprn')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ivprn/hlvur/zelfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ivprn/schedules/hlvur')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hlwgv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hlwgv/jzuof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hlwgv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hlwgv/jzuof/kavlj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hlwgv/schedules/jzuof')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dlabe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dlabe/vnftz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dlabe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dlabe/vnftz/zojao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dlabe/schedules/vnftz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gnked')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gnked/tmejp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gnked')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gnked/tmejp/aetec')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gnked/schedules/tmejp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xrkoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xrkoz/xrsnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xrkoz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xrkoz/xrsnu/indbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xrkoz/schedules/xrsnu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zansq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zansq/qbiex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zansq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zansq/qbiex/lgugh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zansq/schedules/qbiex')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wadxi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wadxi/okezp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wadxi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wadxi/okezp/bdyrn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wadxi/schedules/okezp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yobug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yobug/pcqxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yobug')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yobug/pcqxr/dwkzq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yobug/schedules/pcqxr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vpjoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vpjoy/rujpa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vpjoy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vpjoy/rujpa/hbywj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vpjoy/schedules/rujpa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vbege')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vbege/qicvr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vbege')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vbege/qicvr/uedms')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vbege/schedules/qicvr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/znnja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/znnja/svdko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/znnja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/znnja/svdko/xoref')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/znnja/schedules/svdko')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xbyrh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xbyrh/ktula')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xbyrh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xbyrh/ktula/aiuph')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xbyrh/schedules/ktula')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lzgyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lzgyx/aumqh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lzgyx')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lzgyx/aumqh/afsxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lzgyx/schedules/aumqh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ofbie')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ofbie/ogzod')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ofbie')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ofbie/ogzod/uesxv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ofbie/schedules/ogzod')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/znglq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/znglq/owftl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/znglq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/znglq/owftl/mvdly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/znglq/schedules/owftl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qdrwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qdrwo/vfkzs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qdrwo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qdrwo/vfkzs/mjinj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qdrwo/schedules/vfkzs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pbspf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pbspf/lpihq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pbspf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pbspf/lpihq/beqmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pbspf/schedules/lpihq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rheso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rheso/vipzw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rheso')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rheso/vipzw/pojcw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rheso/schedules/vipzw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/biwey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/biwey/rownh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/biwey')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/biwey/rownh/ntoci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/biwey/schedules/rownh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cazmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cazmh/sdyzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cazmh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cazmh/sdyzx/ftrey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cazmh/schedules/sdyzx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/arkym')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/arkym/kgoqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/arkym')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/arkym/kgoqg/gmuat')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/arkym/schedules/kgoqg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fbkzh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fbkzh/riosz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fbkzh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fbkzh/riosz/ozcyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fbkzh/schedules/riosz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wdtds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wdtds/nxqrx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wdtds')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wdtds/nxqrx/wmvhw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wdtds/schedules/nxqrx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bxglb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bxglb/xamyk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bxglb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bxglb/xamyk/koeyt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bxglb/schedules/xamyk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qkmvb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qkmvb/iyfqc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qkmvb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qkmvb/iyfqc/fcetx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qkmvb/schedules/iyfqc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/krrhf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/krrhf/retkv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/krrhf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/krrhf/retkv/crnbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/krrhf/schedules/retkv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wvgsd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wvgsd/ktjns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wvgsd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wvgsd/ktjns/cynrc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wvgsd/schedules/ktjns')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pbzud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pbzud/vkjyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pbzud')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pbzud/vkjyo/egmkf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pbzud/schedules/vkjyo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rskvj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rskvj/nagsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rskvj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rskvj/nagsv/khlyp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rskvj/schedules/nagsv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ekhfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ekhfu/kqwej')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ekhfu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ekhfu/kqwej/awuod')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ekhfu/schedules/kqwej')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/glblz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/glblz/ticjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/glblz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/glblz/ticjl/ofnai')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/glblz/schedules/ticjl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jkvet')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jkvet/whihn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jkvet')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jkvet/whihn/gvloj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jkvet/schedules/whihn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gokwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gokwz/wlelf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gokwz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gokwz/wlelf/adxnc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gokwz/schedules/wlelf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qjdlw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qjdlw/yagkd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qjdlw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qjdlw/yagkd/frizw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qjdlw/schedules/yagkd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ajpeu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ajpeu/cuyve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ajpeu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ajpeu/cuyve/efqac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ajpeu/schedules/cuyve')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fcswa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fcswa/lgdrs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fcswa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fcswa/lgdrs/pvuqc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fcswa/schedules/lgdrs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/apuhq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/apuhq/qwnuo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/apuhq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/apuhq/qwnuo/lrqhm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/apuhq/schedules/qwnuo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/owyyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/owyyv/heugn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/owyyv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/owyyv/heugn/sejbt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/owyyv/schedules/heugn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lcsgm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lcsgm/elead')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lcsgm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lcsgm/elead/iydhk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lcsgm/schedules/elead')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vnlhp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vnlhp/fudas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vnlhp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vnlhp/fudas/lqpnz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vnlhp/schedules/fudas')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/urysa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urysa/iofra')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urysa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urysa/iofra/qjtju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urysa/schedules/iofra')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qnmvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qnmvt/dtjyn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qnmvt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qnmvt/dtjyn/seqmk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qnmvt/schedules/dtjyn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hafmu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hafmu/kwmvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hafmu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hafmu/kwmvw/tpwof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hafmu/schedules/kwmvw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yalvb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yalvb/xxkbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yalvb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yalvb/xxkbu/qvzfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yalvb/schedules/xxkbu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tbeor')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tbeor/yksmz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tbeor')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tbeor/yksmz/nyimp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tbeor/schedules/yksmz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/auyff')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/auyff/oigwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/auyff')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/auyff/oigwo/lobnw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/auyff/schedules/oigwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qlyme')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qlyme/cozej')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qlyme')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qlyme/cozej/spveg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qlyme/schedules/cozej')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ziqwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ziqwo/hxwft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ziqwo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ziqwo/hxwft/ohnwq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ziqwo/schedules/hxwft')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pjfyb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pjfyb/thoky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pjfyb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pjfyb/thoky/fusvl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pjfyb/schedules/thoky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hbnzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hbnzm/odmih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hbnzm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hbnzm/odmih/bhdxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hbnzm/schedules/odmih')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/duwyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/duwyh/lfbmq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/duwyh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/duwyh/lfbmq/lfrcx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/duwyh/schedules/lfbmq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nsrvx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nsrvx/vxnbn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nsrvx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nsrvx/vxnbn/byazc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nsrvx/schedules/vxnbn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tcncg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tcncg/mshmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tcncg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tcncg/mshmg/kkpbd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tcncg/schedules/mshmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/znsev')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/znsev/ycsrk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/znsev')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/znsev/ycsrk/enwvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/znsev/schedules/ycsrk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iklrb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iklrb/plwuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iklrb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iklrb/plwuf/ornjh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iklrb/schedules/plwuf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pqcal')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pqcal/lftpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pqcal')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pqcal/lftpz/fterl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pqcal/schedules/lftpz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vywyq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vywyq/vqlob')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vywyq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vywyq/vqlob/sbtfr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vywyq/schedules/vqlob')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cwgdb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cwgdb/hkyox')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cwgdb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cwgdb/hkyox/kcgez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cwgdb/schedules/hkyox')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ckrtr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ckrtr/xelzj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ckrtr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ckrtr/xelzj/etzpn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ckrtr/schedules/xelzj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/agajw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agajw/vtnah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agajw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agajw/vtnah/slaxp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agajw/schedules/vtnah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aqols')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aqols/wearj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aqols')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aqols/wearj/vyhze')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aqols/schedules/wearj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vtepm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vtepm/fxrum')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vtepm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vtepm/fxrum/kxtqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vtepm/schedules/fxrum')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gbzmn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gbzmn/khnvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gbzmn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gbzmn/khnvy/czqpx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gbzmn/schedules/khnvy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ehzxa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ehzxa/shcpj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ehzxa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ehzxa/shcpj/kdhyi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ehzxa/schedules/shcpj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dmcop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dmcop/grfoc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dmcop')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dmcop/grfoc/vfrlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dmcop/schedules/grfoc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oeqzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oeqzm/uchwp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oeqzm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oeqzm/uchwp/kurto')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oeqzm/schedules/uchwp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/uzjzw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/afcfq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dhgfw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kkqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kaipe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lyyvm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fzcpy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wndbp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yoimd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jhlle')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zxzni')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/janjv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ruwkh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/otcze')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oksjy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hvvbf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qedrf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jvxcm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pmnvx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mvxir')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hqxyg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fvuqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kfmob')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nutbd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/usduf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dhcim')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uxnia')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/soypx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mdsph')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ybdvt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/letwx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pdqcd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfcug')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sbopx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jwihd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ktvoc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ucesp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfacx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jacks')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kadyq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bkyod')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qvnaw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vtaww')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvney')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jvsud')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/irgbk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vdken')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tzxbu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sxuuk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tkuna')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/majhk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgomx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yqxch')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/herqb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tezkc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cmxuk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rgiwp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oxzdo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qarkq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zqpuw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gvlja')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/arzvg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tisyk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vcmgp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cnuun')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gzrac')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/piqrz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ujgpy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ktshu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yjefm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uypsn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zcobm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebserverfarms.json index 9405df04..d96d2203 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqcuu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqcuu/dzhju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqcuu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqcuu/dzhju/hteeu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqcuu/schedules/dzhju')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tripg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tripg/raidb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tripg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tripg/raidb/rjdtd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tripg/schedules/raidb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xaimm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xaimm/yighk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xaimm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xaimm/yighk/angpy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xaimm/schedules/yighk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mkthm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mkthm/nzvih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mkthm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mkthm/nzvih/ikbix')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mkthm/schedules/nzvih')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/keslg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/keslg/bmwgg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/keslg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/keslg/bmwgg/rmvoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/keslg/schedules/bmwgg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ajnzo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ajnzo/xelhz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ajnzo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ajnzo/xelhz/wtbgn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ajnzo/schedules/xelhz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ytzmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ytzmf/zbfan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ytzmf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ytzmf/zbfan/mlssq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ytzmf/schedules/zbfan')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jotyg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jotyg/jakyd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jotyg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jotyg/jakyd/otvgc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jotyg/schedules/jakyd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/wfueh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lhukw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/byjne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cawfb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nfkcs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uyrvv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/poeat')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dxklk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebsites.json index 91239e37..49c9c7eb 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/alertwebsites.json @@ -1,558 +1,488 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ksxpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ksxpz/apjfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ksxpz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ksxpz/apjfq/wnvrl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ksxpz/schedules/apjfq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wwpng')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wwpng/pqduf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wwpng')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wwpng/pqduf/uifzy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wwpng/schedules/pqduf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jiylr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jiylr/njnal')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jiylr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jiylr/njnal/qppsy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jiylr/schedules/njnal')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gxopm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gxopm/jqxuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gxopm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gxopm/jqxuz/itkyf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gxopm/schedules/jqxuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wekro')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wekro/xjqrk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wekro')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wekro/xjqrk/dbmjv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wekro/schedules/xjqrk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dknda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dknda/xbcbv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dknda')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dknda/xbcbv/eoylb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dknda/schedules/xbcbv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dyrup')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dyrup/doadk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dyrup')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dyrup/doadk/kmfyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dyrup/schedules/doadk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ubyle')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wwuzr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/facoj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ufxhg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mnosc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fodgl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uqtxk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/application.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/application.json index 0b481afb..5cb99d8d 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/application.json @@ -1,2119 +1,1990 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-messaging-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/integration.json b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/integration.json index a49f40fe..dd015a1c 100644 --- a/Sitecore 9.0.2/XDB/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.2/XDB/addons/Monitoring/nested/integration.json @@ -1,392 +1,393 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/README.md b/Sitecore 9.0.2/XM/addons/Monitoring/README.md index 4997b670..60b772b6 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/README.md +++ b/Sitecore 9.0.2/XM/addons/Monitoring/README.md @@ -13,7 +13,7 @@ The **deploymentId** parameter is filled in by the PowerShell script. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -26,11 +26,11 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.json index 07d6bf0d..ba563fd5 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.json @@ -1,338 +1,363 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "solrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertcacheredis.json index 0678960d..8b7e18a3 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urxey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/urxey/uddvl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/urxey')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/urxey/uddvl/bqkah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/urxey/schedules/uddvl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/euczn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsearchsearchservices.json index 3b00485a..4a91d106 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mwmyr/btrbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mwmyr')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwmyr/btrbu/cjdnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mwmyr/schedules/btrbu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/prbje')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsqlserversdatabases.json index d377d680..0f8dad3f 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ajgiy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ajgiy/awokc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ajgiy')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ajgiy/awokc/qaqck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ajgiy/schedules/awokc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bvjan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bvjan/bjqpp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bvjan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bvjan/bjqpp/sleah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bvjan/schedules/bjqpp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iosqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iosqf/cqytx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iosqf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iosqf/cqytx/rsngl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iosqf/schedules/cqytx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lyhlc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lyhlc/cwulk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lyhlc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lyhlc/cwulk/rbjaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lyhlc/schedules/cwulk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/chwhz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/chwhz/ggwof')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/chwhz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/chwhz/ggwof/xfilt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/chwhz/schedules/ggwof')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hwxsz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hwxsz/eyubg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hwxsz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hwxsz/eyubg/hpxfa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hwxsz/schedules/eyubg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fnsei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fnsei/slkui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fnsei')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fnsei/slkui/oqnwd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fnsei/schedules/slkui')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bwngs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bwngs/koapu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bwngs')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bwngs/koapu/camns')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bwngs/schedules/koapu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vywjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vywjl/iecdr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vywjl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vywjl/iecdr/kjtfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vywjl/schedules/iecdr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wrehp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wrehp/tursq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wrehp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wrehp/tursq/vtqey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wrehp/schedules/tursq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/crgwg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/crgwg/pbosj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/crgwg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/crgwg/pbosj/rqebf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/crgwg/schedules/pbosj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dheib')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dheib/ypljp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dheib')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dheib/ypljp/ekoca')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dheib/schedules/ypljp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/itmdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/itmdt/iyksz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/itmdt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/itmdt/iyksz/lszav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/itmdt/schedules/iyksz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bfqrh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bfqrh/gvrmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bfqrh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bfqrh/gvrmi/plwqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bfqrh/schedules/gvrmi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/odydh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/odydh/pebsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/odydh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/odydh/pebsu/kamwf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/odydh/schedules/pebsu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ydaps')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ydaps/feweq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ydaps')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ydaps/feweq/tjqvg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ydaps/schedules/feweq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sqgnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sqgnu/iyffr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sqgnu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sqgnu/iyffr/zolne')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sqgnu/schedules/iyffr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oygiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oygiu/fqmea')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oygiu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oygiu/fqmea/pfbzs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oygiu/schedules/fqmea')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jcbgv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jcbgv/batzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jcbgv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jcbgv/batzx/uoofb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jcbgv/schedules/batzx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/todyk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/todyk/nxqoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/todyk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/todyk/nxqoi/jfqpp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/todyk/schedules/nxqoi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/woars')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/woars/uwkjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/woars')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/woars/uwkjo/kdgux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/woars/schedules/uwkjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/osxkk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/osxkk/elfxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/osxkk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/osxkk/elfxz/sptfl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/osxkk/schedules/elfxz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mgiru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mgiru/xklcl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mgiru')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mgiru/xklcl/lobqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mgiru/schedules/xklcl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ypygr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ypygr/zsodq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ypygr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ypygr/zsodq/sxvgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ypygr/schedules/zsodq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ftvya')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vlruq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/emhqx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ijoei')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zqojr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mfolw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hwoqc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pochs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/owsqy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/znlts')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cbwym')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hxfij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pqxbe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wjjat')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xoqgp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/swore')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xqmah')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vybqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qngey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pugql')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ukdyv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hiyhw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hhqai')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bxvtn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebserverfarms.json index dca7acf8..262f00ee 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,336 +1,299 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xfkms')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xfkms/pyhlq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xfkms')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xfkms/pyhlq/lvsrb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xfkms/schedules/pyhlq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zjcld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zjcld/tanri')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zjcld')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zjcld/tanri/xhrem')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zjcld/schedules/tanri')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hmtiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hmtiu/tqfky')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hmtiu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hmtiu/tqfky/vxcdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hmtiu/schedules/tqfky')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/agwyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/agwyh/pnebx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/agwyh')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/agwyh/pnebx/pfqum')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/agwyh/schedules/pnebx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/dklgl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hjmjk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gqeie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xubxf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebsites.json index 07fa3d2f..43b15c28 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/alertwebsites.json @@ -1,188 +1,173 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdliu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jdliu/agzub')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jdliu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jdliu/agzub/ufntw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jdliu/schedules/agzub')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ovcfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ovcfz/njrse')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ovcfz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ovcfz/njrse/mcoqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ovcfz/schedules/njrse')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/nxghj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oakli')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/application.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/application.json index 5e4b6538..c405ace7 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/application.json @@ -1,1069 +1,1010 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.0.2/XM/addons/Monitoring/nested/integration.json b/Sitecore 9.0.2/XM/addons/Monitoring/nested/integration.json index 3f9ea3cb..f850c39c 100644 --- a/Sitecore 9.0.2/XM/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.2/XM/addons/Monitoring/nested/integration.json @@ -1,182 +1,183 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/README.md b/Sitecore 9.0.2/XP/addons/Monitoring/README.md index fb4c9f9b..c7bb8214 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/README.md +++ b/Sitecore 9.0.2/XP/addons/Monitoring/README.md @@ -8,12 +8,12 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -26,11 +26,11 @@ Steps to configure the Sitecore deployment parameters to include the Application "name": "monitoring", "templateLink": "", "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.json b/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.json index 07d6bf0d..ba563fd5 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.json @@ -1,338 +1,363 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "solrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertcacheredis.json index 214bed49..9cb9fc2b 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bylvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bylvu/xanbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bylvu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bylvu/xanbs/gccjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bylvu/schedules/xanbs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gbjew')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsearchsearchservices.json index 5bbcd777..b71a73b5 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ucivm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ucivm/oppdc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ucivm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ucivm/oppdc/rbpqa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ucivm/schedules/oppdc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/sjdue')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsqlserversdatabases.json index 14d26c0a..895e2565 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,6256 +1,5339 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/todbt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/todbt/jpgnh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/todbt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/todbt/jpgnh/wlthu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/todbt/schedules/jpgnh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cjzuf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cjzuf/yyxej')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cjzuf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cjzuf/yyxej/hiyyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cjzuf/schedules/yyxej')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oxvjk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oxvjk/hxsue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oxvjk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oxvjk/hxsue/vwukr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oxvjk/schedules/hxsue')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hfkce')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hfkce/qwxhg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hfkce')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hfkce/qwxhg/sydgo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hfkce/schedules/qwxhg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hvrah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hvrah/lsmmk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hvrah')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hvrah/lsmmk/yqauc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hvrah/schedules/lsmmk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/htekz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/htekz/dwumh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/htekz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/htekz/dwumh/lphxs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/htekz/schedules/dwumh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/acqhd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/acqhd/vkcud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/acqhd')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/acqhd/vkcud/qwpat')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/acqhd/schedules/vkcud')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pqahj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pqahj/pizwy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pqahj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pqahj/pizwy/numoa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pqahj/schedules/pizwy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rlgcs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rlgcs/ezykg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rlgcs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rlgcs/ezykg/ygwvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rlgcs/schedules/ezykg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tshqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tshqz/bjyxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tshqz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tshqz/bjyxw/eiemt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tshqz/schedules/bjyxw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/exwfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/exwfz/oqbkv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/exwfz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/exwfz/oqbkv/rjanb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/exwfz/schedules/oqbkv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ttfcn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ttfcn/txiab')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ttfcn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ttfcn/txiab/jbhpq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ttfcn/schedules/txiab')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nihyv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nihyv/knbdx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nihyv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nihyv/knbdx/ogruf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nihyv/schedules/knbdx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/etopk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/etopk/rbimb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/etopk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/etopk/rbimb/jplts')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/etopk/schedules/rbimb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bdwkx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bdwkx/ujpfw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bdwkx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bdwkx/ujpfw/vpxeo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bdwkx/schedules/ujpfw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dkfnp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dkfnp/ghzfd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dkfnp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dkfnp/ghzfd/txfsw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dkfnp/schedules/ghzfd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emqjf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emqjf/amkxj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emqjf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emqjf/amkxj/ksrri')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emqjf/schedules/amkxj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/domaz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/domaz/iuyym')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/domaz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/domaz/iuyym/zpkil')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/domaz/schedules/iuyym')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mamgq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mamgq/jfuxt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mamgq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mamgq/jfuxt/whdbq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mamgq/schedules/jfuxt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hfkqg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hfkqg/kflcg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hfkqg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hfkqg/kflcg/fpntr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hfkqg/schedules/kflcg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wrmnp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wrmnp/wpycj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wrmnp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wrmnp/wpycj/gvwek')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wrmnp/schedules/wpycj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uvxny')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uvxny/kndiz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uvxny')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uvxny/kndiz/zoioy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uvxny/schedules/kndiz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nxcye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nxcye/jzonh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nxcye')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nxcye/jzonh/cwelh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nxcye/schedules/jzonh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xuilt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xuilt/ywvoe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xuilt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xuilt/ywvoe/vokcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xuilt/schedules/ywvoe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mawzi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mawzi/tetiz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mawzi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mawzi/tetiz/npxmi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mawzi/schedules/tetiz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kdttx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kdttx/lrkcb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kdttx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kdttx/lrkcb/qfuho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kdttx/schedules/lrkcb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ynkiq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ynkiq/njaxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ynkiq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ynkiq/njaxw/aivsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ynkiq/schedules/njaxw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uaqxv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uaqxv/utdbk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uaqxv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uaqxv/utdbk/lnmcd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uaqxv/schedules/utdbk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ddjwf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ddjwf/edrfl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ddjwf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ddjwf/edrfl/gsqmz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ddjwf/schedules/edrfl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/htcax')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/htcax/mskyu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/htcax')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/htcax/mskyu/egvwr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/htcax/schedules/mskyu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qofec')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qofec/fegfz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qofec')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qofec/fegfz/yifcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qofec/schedules/fegfz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hbgxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hbgxm/ufwvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hbgxm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hbgxm/ufwvs/ncwau')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hbgxm/schedules/ufwvs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uzler')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uzler/ejuhx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uzler')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uzler/ejuhx/rrgcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uzler/schedules/ejuhx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/azlyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/azlyx/jdzah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/azlyx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/azlyx/jdzah/dokyx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/azlyx/schedules/jdzah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nygxe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nygxe/nhyoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nygxe')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nygxe/nhyoz/qhjho')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nygxe/schedules/nhyoz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/saidp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/saidp/kxskw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/saidp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/saidp/kxskw/uaahn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/saidp/schedules/kxskw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qrnfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qrnfm/dbvrc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qrnfm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qrnfm/dbvrc/gjqud')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qrnfm/schedules/dbvrc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tkpal')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tkpal/qshvd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tkpal')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tkpal/qshvd/krabb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tkpal/schedules/qshvd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/texok')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/texok/nwoms')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/texok')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/texok/nwoms/dxieq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/texok/schedules/nwoms')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tafie')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tafie/heomh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tafie')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tafie/heomh/oztcc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tafie/schedules/heomh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ocmni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ocmni/ctwuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ocmni')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ocmni/ctwuz/rpsng')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ocmni/schedules/ctwuz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tjqas')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tjqas/racmv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tjqas')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tjqas/racmv/bwksc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tjqas/schedules/racmv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lrciv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lrciv/gwxiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lrciv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lrciv/gwxiu/bezry')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lrciv/schedules/gwxiu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aglre')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aglre/qprjy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aglre')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aglre/qprjy/vcbco')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aglre/schedules/qprjy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akwlo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akwlo/mibhd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akwlo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akwlo/mibhd/lzeva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akwlo/schedules/mibhd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ypfve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ypfve/ezmvr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ypfve')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ypfve/ezmvr/eeyzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ypfve/schedules/ezmvr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hnjhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hnjhu/mwjrw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hnjhu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hnjhu/mwjrw/ctmia')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hnjhu/schedules/mwjrw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flhga')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flhga/fzqse')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flhga')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flhga/fzqse/zmdck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flhga/schedules/fzqse')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zldoj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zldoj/fdkav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zldoj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zldoj/fdkav/zglgh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zldoj/schedules/fdkav')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sdlez')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sdlez/yurmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sdlez')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sdlez/yurmh/jaagp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sdlez/schedules/yurmh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fmgox')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fmgox/hnehq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fmgox')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fmgox/hnehq/oaqlg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fmgox/schedules/hnehq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tpyum')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tpyum/ltsin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tpyum')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tpyum/ltsin/ujral')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tpyum/schedules/ltsin')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdrkz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdrkz/nlwmc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdrkz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdrkz/nlwmc/lcgwy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdrkz/schedules/nlwmc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cmeah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cmeah/rltoa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cmeah')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cmeah/rltoa/mbvvq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cmeah/schedules/rltoa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nmwpc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nmwpc/ofldr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nmwpc')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nmwpc/ofldr/auguq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nmwpc/schedules/ofldr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rdmtf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rdmtf/dqxeu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rdmtf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rdmtf/dqxeu/ohnbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rdmtf/schedules/dqxeu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nyzkq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nyzkq/ulvif')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nyzkq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nyzkq/ulvif/tjmtg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nyzkq/schedules/ulvif')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uelvc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uelvc/owepf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uelvc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uelvc/owepf/ysmcq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uelvc/schedules/owepf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iuybq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iuybq/njqlz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iuybq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iuybq/njqlz/tcgub')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iuybq/schedules/njqlz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/oqswz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/oqswz/gespa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/oqswz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/oqswz/gespa/leouj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/oqswz/schedules/gespa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fxanl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fxanl/qapzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fxanl')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fxanl/qapzm/wicpv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fxanl/schedules/qapzm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qjlnc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qjlnc/wtdig')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qjlnc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qjlnc/wtdig/ngvhm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qjlnc/schedules/wtdig')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/neayu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/neayu/cxieu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/neayu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/neayu/cxieu/pqyhk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/neayu/schedules/cxieu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ckybb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ckybb/oemrv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ckybb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ckybb/oemrv/evbek')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ckybb/schedules/oemrv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/byfuw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/byfuw/zetsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/byfuw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/byfuw/zetsx/bcrvk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/byfuw/schedules/zetsx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lvfxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lvfxc/autje')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lvfxc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lvfxc/autje/hftel')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lvfxc/schedules/autje')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wclds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wclds/nybdd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wclds')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wclds/nybdd/kpofn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wclds/schedules/nybdd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/futbo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/futbo/dtijv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/futbo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/futbo/dtijv/upavv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/futbo/schedules/dtijv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vmykc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vmykc/ogtad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vmykc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vmykc/ogtad/puzle')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vmykc/schedules/ogtad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sjiub')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sjiub/lqyjs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sjiub')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sjiub/lqyjs/yqwia')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sjiub/schedules/lqyjs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/aipfr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/aipfr/ytwjl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/aipfr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/aipfr/ytwjl/vxnkh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/aipfr/schedules/ytwjl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/abtve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/abtve/zynfm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/abtve')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/abtve/zynfm/vfius')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/abtve/schedules/zynfm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/swotk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/swotk/ulezp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/swotk')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/swotk/ulezp/ecgvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/swotk/schedules/ulezp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kifue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kifue/hltxa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kifue')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kifue/hltxa/fngrh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kifue/schedules/hltxa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ucngi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ucngi/kzlyb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ucngi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ucngi/kzlyb/lknzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ucngi/schedules/kzlyb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cvfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cvfba/qfrqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cvfba')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cvfba/qfrqx/kxwuh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cvfba/schedules/qfrqx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jgrqd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jgrqd/jlnna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jgrqd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jgrqd/jlnna/vuwko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jgrqd/schedules/jlnna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/coucm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/coucm/tpovx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/coucm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/coucm/tpovx/topiz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/coucm/schedules/tpovx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iwzsi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iwzsi/fdvar')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iwzsi')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iwzsi/fdvar/nppah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iwzsi/schedules/fdvar')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qghdi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qghdi/vtnyl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qghdi')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qghdi/vtnyl/vhkna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qghdi/schedules/vtnyl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/okdgu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/okdgu/vqpta')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/okdgu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/okdgu/vqpta/kxtzf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/okdgu/schedules/vqpta')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/owivt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/owivt/kdrpt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/owivt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/owivt/kdrpt/aecxy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/owivt/schedules/kdrpt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ojdio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ojdio/owklr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ojdio')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ojdio/owklr/zqpry')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ojdio/schedules/owklr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mhunl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mhunl/rtzmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mhunl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mhunl/rtzmf/niubb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mhunl/schedules/rtzmf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/fujwq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kpsux')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wtpns')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qrmrd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajttv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtpaw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gtych')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itvps')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nicui')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mejbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vyajr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yrqzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvlnk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fkqkb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ergmf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fvcmh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pwgie')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jjyrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/brphx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/irnwp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zcbis')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tfnme')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fdpsb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rmxjh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/urbmd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zoxyf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pzsll')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tikav')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yimxz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nxtyf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fploj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/quzmh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yslda')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kaoux')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/smbhn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/losbj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fgqfk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljcpm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/prdgk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lgtvp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/puycc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bltrf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ujisw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oploh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xmblg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hikwy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ubpcg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cjofe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kjuen')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fdmjs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nowby')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ebwzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ogizb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rojaz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cztpy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bpael')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/djptb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pnayo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qozsu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eysdm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gyswv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/avzfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/igovg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rjion')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cngsy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ercwp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/emqgi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mdheo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zuljy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/amuec')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/euwfs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fjihx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xmzcq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ebsfv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rslxz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aqpeb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qpfjb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kodgf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xndkr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmzsr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wdnzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqnai')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gstlx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ytsuk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebserverfarms.json index 96fb0184..8c5e7bf4 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,928 +1,803 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/esvlo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/esvlo/jyleo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/esvlo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/esvlo/jyleo/iqfzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/esvlo/schedules/jyleo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bgchy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bgchy/rnijl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bgchy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bgchy/rnijl/ylhiu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bgchy/schedules/rnijl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gcbwn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gcbwn/zirmh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gcbwn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gcbwn/zirmh/qrvtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gcbwn/schedules/zirmh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/byfql')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/byfql/cpnwr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/byfql')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/byfql/cpnwr/qjmwy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/byfql/schedules/cpnwr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dnmxj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dnmxj/sgwoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dnmxj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dnmxj/sgwoi/hjrlx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dnmxj/schedules/sgwoi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/exufm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/exufm/xyhwi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/exufm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/exufm/xyhwi/yxhps')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/exufm/schedules/xyhwi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wmaqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wmaqj/rvuko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wmaqj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wmaqj/rvuko/qbtuz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wmaqj/schedules/rvuko')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qarmo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qarmo/yyusq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qarmo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qarmo/yyusq/qjxmo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qarmo/schedules/yyusq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/khocz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/khocz/uizka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/khocz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/khocz/uizka/zudvt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/khocz/schedules/uizka')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cbavo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cbavo/vijqb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cbavo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cbavo/vijqb/pfvlv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cbavo/schedules/vijqb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lelfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lelfp/zkrgi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lelfp')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lelfp/zkrgi/uoibk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lelfp/schedules/zkrgi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ilsqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ilsqt/rmwaz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ilsqt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ilsqt/rmwaz/advpp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ilsqt/schedules/rmwaz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/qhxer')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rgdsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/knfiw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/npbwx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/glpky')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uenqd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gqfxn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ogczc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mogip')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ipyju')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ioupd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pejnx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebsites.json index 0c07de82..1d57a54d 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/alertwebsites.json @@ -1,706 +1,614 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xloqv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xloqv/flbcf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xloqv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xloqv/flbcf/hrdkj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xloqv/schedules/flbcf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/asrtq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/asrtq/wbnha')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/asrtq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/asrtq/wbnha/jcuye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/asrtq/schedules/wbnha')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/afygv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/afygv/awcth')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/afygv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/afygv/awcth/mlrqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/afygv/schedules/awcth')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ygjzc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ygjzc/sblro')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ygjzc')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ygjzc/sblro/xyvbw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ygjzc/schedules/sblro')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cmmpw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cmmpw/idmwc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cmmpw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cmmpw/idmwc/hdxif')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cmmpw/schedules/idmwc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wjpaf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wjpaf/pyvwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wjpaf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wjpaf/pyvwo/eesia')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wjpaf/schedules/pyvwo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/esyeh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/esyeh/ngjox')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/esyeh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/esyeh/ngjox/blars')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/esyeh/schedules/ngjox')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kwkdc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kwkdc/nwbxf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kwkdc')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kwkdc/nwbxf/uldra')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kwkdc/schedules/nwbxf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ktonz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ktonz/yzmdu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ktonz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ktonz/yzmdu/dqvug')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ktonz/schedules/yzmdu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ipgbh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ivhix')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/owdta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/skrme')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wfptr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gunbr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/msofc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mtxda')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nfwep')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/application.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/application.json index 20529666..7706d0eb 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/application.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/application.json @@ -1,2680 +1,2480 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [ - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [ - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-messaging-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [ - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [ - { - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } -} + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.0.2/XP/addons/Monitoring/nested/integration.json b/Sitecore 9.0.2/XP/addons/Monitoring/nested/integration.json index b22b7253..823d1dc2 100644 --- a/Sitecore 9.0.2/XP/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.0.2/XP/addons/Monitoring/nested/integration.json @@ -1,497 +1,498 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/README.md b/Sitecore 9.1.0/XDB/addons/Monitoring/README.md index d1f20eb0..9e672ae4 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/README.md +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/README.md @@ -8,12 +8,12 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group. | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -25,12 +25,12 @@ Steps to configure the Sitecore deployment parameters to include the Application { "name": "monitoring", "templateLink": "", - "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "parameters": { + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.json b/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.json index 6933a97f..3ca88097 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.json @@ -1,312 +1,334 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "xcSolrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "xcSolrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json index d4ebcaa9..fc8d0938 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqgsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uqgsv/bakon')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uqgsv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqgsv/bakon/lpaxh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uqgsv/schedules/bakon')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mzobo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json index 4fc42fe6..77e6a0d9 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,5812 +1,4961 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jckzz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jckzz/fuwyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jckzz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jckzz/fuwyo/trrlc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jckzz/schedules/fuwyo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dcipt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dcipt/oaafv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dcipt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dcipt/oaafv/kksin')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dcipt/schedules/oaafv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eiyso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eiyso/iqydq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eiyso')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eiyso/iqydq/ashje')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eiyso/schedules/iqydq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vauwq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vauwq/sofsz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vauwq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vauwq/sofsz/fyxma')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vauwq/schedules/sofsz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cbheg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cbheg/joxpm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cbheg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cbheg/joxpm/blpuo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cbheg/schedules/joxpm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lteuw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lteuw/ojnfx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lteuw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lteuw/ojnfx/yizni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lteuw/schedules/ojnfx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jampn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jampn/rjnlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jampn')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jampn/rjnlm/eqkvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jampn/schedules/rjnlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wynzi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wynzi/rafzj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wynzi')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wynzi/rafzj/tjeih')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wynzi/schedules/rafzj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/whfoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/whfoi/onzmr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/whfoi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/whfoi/onzmr/serix')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/whfoi/schedules/onzmr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/guswq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/guswq/dhfex')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/guswq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/guswq/dhfex/auhfj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/guswq/schedules/dhfex')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/masqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/masqy/wrndh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/masqy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/masqy/wrndh/bezqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/masqy/schedules/wrndh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/minld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/minld/osyrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/minld')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/minld/osyrp/losqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/minld/schedules/osyrp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/thjgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/thjgx/tkwgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/thjgx')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/thjgx/tkwgy/bimeq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/thjgx/schedules/tkwgy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ancef')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ancef/fnoir')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ancef')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ancef/fnoir/ipqmz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ancef/schedules/fnoir')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ntvnc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ntvnc/zlrwy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ntvnc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ntvnc/zlrwy/rntzg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ntvnc/schedules/zlrwy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sejyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sejyo/wtxxa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sejyo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sejyo/wtxxa/ldlba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sejyo/schedules/wtxxa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dbapx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dbapx/nmegk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dbapx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dbapx/nmegk/xfyby')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dbapx/schedules/nmegk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/atxoy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/atxoy/nxmka')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/atxoy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/atxoy/nxmka/xzbfj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/atxoy/schedules/nxmka')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ojsdo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ojsdo/foyru')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ojsdo')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ojsdo/foyru/uhnpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ojsdo/schedules/foyru')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jxbke')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jxbke/usren')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jxbke')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jxbke/usren/wgybn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jxbke/schedules/usren')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tkvsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tkvsp/ftghs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tkvsp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tkvsp/ftghs/prniw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tkvsp/schedules/ftghs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ceynh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ceynh/fjzcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ceynh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ceynh/fjzcv/fipxo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ceynh/schedules/fjzcv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hprwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hprwz/ewadl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hprwz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hprwz/ewadl/kboph')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hprwz/schedules/ewadl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ybull')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ybull/fsrep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ybull')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ybull/fsrep/ytcbz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ybull/schedules/fsrep')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wrvpc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wrvpc/sxenl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wrvpc')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wrvpc/sxenl/rdsgu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wrvpc/schedules/sxenl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/blkrg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/blkrg/jnpbv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/blkrg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/blkrg/jnpbv/omkbd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/blkrg/schedules/jnpbv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vewzg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vewzg/qnyqb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vewzg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vewzg/qnyqb/exoac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vewzg/schedules/qnyqb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emwck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emwck/ddrlm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emwck')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emwck/ddrlm/jazav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emwck/schedules/ddrlm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uwicu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uwicu/ndhkr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uwicu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uwicu/ndhkr/rjovk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uwicu/schedules/ndhkr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kzuja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kzuja/olamy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kzuja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kzuja/olamy/zbcdj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kzuja/schedules/olamy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xvozw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xvozw/dowad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xvozw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xvozw/dowad/fgvul')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xvozw/schedules/dowad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lxwsf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lxwsf/cxfbi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lxwsf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lxwsf/cxfbi/hsrwu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lxwsf/schedules/cxfbi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/raocq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/raocq/rliys')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/raocq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/raocq/rliys/bgqpz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/raocq/schedules/rliys')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hsnwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hsnwo/kcurw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hsnwo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hsnwo/kcurw/ymzdx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hsnwo/schedules/kcurw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/avufb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avufb/qgide')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avufb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avufb/qgide/umxeg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avufb/schedules/qgide')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ghlox')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ghlox/mbyoz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ghlox')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ghlox/mbyoz/ulhbf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ghlox/schedules/mbyoz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/npvki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/npvki/ihbuq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/npvki')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/npvki/ihbuq/ijupz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/npvki/schedules/ihbuq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fwzil')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fwzil/tyilr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fwzil')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fwzil/tyilr/bmdfh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fwzil/schedules/tyilr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rcgld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rcgld/vhwhi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rcgld')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rcgld/vhwhi/mkrnh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rcgld/schedules/vhwhi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/foigm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/foigm/rvibq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/foigm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/foigm/rvibq/ahnjd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/foigm/schedules/rvibq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tpskg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tpskg/odivw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tpskg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tpskg/odivw/muqbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tpskg/schedules/odivw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bktlh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bktlh/bpxyi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bktlh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bktlh/bpxyi/djpst')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bktlh/schedules/bpxyi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pbhwd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pbhwd/wrvuv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pbhwd')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pbhwd/wrvuv/xqtop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pbhwd/schedules/wrvuv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rlihc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rlihc/rfugs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rlihc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rlihc/rfugs/dzhey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rlihc/schedules/rfugs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zkouz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zkouz/efgku')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zkouz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zkouz/efgku/mqbfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zkouz/schedules/efgku')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hscvk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hscvk/fkvad')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hscvk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hscvk/fkvad/jqxog')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hscvk/schedules/fkvad')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ectwl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ectwl/ayyes')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ectwl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ectwl/ayyes/yvhav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ectwl/schedules/ayyes')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kkhcn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kkhcn/egwpt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kkhcn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kkhcn/egwpt/lpnvc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kkhcn/schedules/egwpt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vqgea')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vqgea/pceio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vqgea')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vqgea/pceio/rfaxc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vqgea/schedules/pceio')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tpkje')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tpkje/jqijo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tpkje')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tpkje/jqijo/txrks')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tpkje/schedules/jqijo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ixwvb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ixwvb/ueumf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ixwvb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ixwvb/ueumf/mhtrb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ixwvb/schedules/ueumf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/roofw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/roofw/fkrgq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/roofw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/roofw/fkrgq/vpxfl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/roofw/schedules/fkrgq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pazqo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pazqo/juxod')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pazqo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pazqo/juxod/welzh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pazqo/schedules/juxod')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lpaxv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lpaxv/gdmxv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lpaxv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lpaxv/gdmxv/iugiv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lpaxv/schedules/gdmxv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yhvwp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yhvwp/fdjis')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yhvwp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yhvwp/fdjis/szfjk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yhvwp/schedules/fdjis')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/niopg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/niopg/vnavs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/niopg')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/niopg/vnavs/oqddi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/niopg/schedules/vnavs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ueriu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ueriu/jkbzz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ueriu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ueriu/jkbzz/udilo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ueriu/schedules/jkbzz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qliht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qliht/etomy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qliht')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qliht/etomy/tdsqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qliht/schedules/etomy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wfkav')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wfkav/glfmj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wfkav')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wfkav/glfmj/pfmzc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wfkav/schedules/glfmj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/swvzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/swvzl/qdnaz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/swvzl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/swvzl/qdnaz/aenhs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/swvzl/schedules/qdnaz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xyvsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xyvsu/jupqj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xyvsu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xyvsu/jupqj/dpoux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xyvsu/schedules/jupqj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kerno')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kerno/mfcqn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kerno')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kerno/mfcqn/xgevt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kerno/schedules/mfcqn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/byrct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/byrct/vyici')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/byrct')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/byrct/vyici/tnima')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/byrct/schedules/vyici')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sxmkx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sxmkx/pzblv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sxmkx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sxmkx/pzblv/zwcke')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sxmkx/schedules/pzblv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dyfba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dyfba/tgweh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dyfba')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dyfba/tgweh/vytxz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dyfba/schedules/tgweh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cagdg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cagdg/ylmxq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cagdg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cagdg/ylmxq/qmuvu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cagdg/schedules/ylmxq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/etqvj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/etqvj/haxrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/etqvj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/etqvj/haxrp/jhftl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/etqvj/schedules/haxrp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dflzu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dflzu/sunfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dflzu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dflzu/sunfu/ickfb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dflzu/schedules/sunfu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gwriv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gwriv/bwkvm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gwriv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gwriv/bwkvm/ybzpa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gwriv/schedules/bwkvm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vankx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vankx/sdxla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vankx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vankx/sdxla/zfomh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vankx/schedules/sdxla')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ignve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ignve/nmauj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ignve')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ignve/nmauj/vjykf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ignve/schedules/nmauj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lduzp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lduzp/nzjir')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lduzp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lduzp/nzjir/kujwf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lduzp/schedules/nzjir')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uebpp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uebpp/skurb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uebpp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uebpp/skurb/nuksn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uebpp/schedules/skurb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dhlxl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dhlxl/vinzp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dhlxl')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dhlxl/vinzp/umgxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dhlxl/schedules/vinzp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bfdht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bfdht/kmlma')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bfdht')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bfdht/kmlma/tmoai')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bfdht/schedules/kmlma')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vcalg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vcalg/exqzm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vcalg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vcalg/exqzm/ukcvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vcalg/schedules/exqzm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jsglb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jsglb/rlxmg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jsglb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jsglb/rlxmg/ylcve')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jsglb/schedules/rlxmg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ulcsx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ulcsx/tfubh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ulcsx')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ulcsx/tfubh/hlccf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ulcsx/schedules/tfubh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/bkoza')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kztzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zicdb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xqwuo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/menwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ktjwh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gfhtd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/syxha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cybur')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grcij')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/msdxn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ekjgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yfqeh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gzryn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ndntu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cosbb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ozyel')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/etroj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sslmb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/notrk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/olxyh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/abgvc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ujsbi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/djjzn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fsubt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rngxo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mpijd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fdtgo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xnxgh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uzekj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oxpem')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ptnxb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gaiyk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/abeyz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gzufy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ntygi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dqktb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rjtuz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fmixc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ibnaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/awdqf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdfpx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ozdal')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mlode')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/whmhk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvqfm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jdvut')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vbzje')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kcdws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hbzrx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/telfu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nldqx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zdbcr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlhpu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/voqmf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ncaiv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/emily')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/grbag')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fdbul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/setlj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zohpx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wskyx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tpaiq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/szked')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywkko')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xvjwa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/estrh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rwmqb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/awzrx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lbvqa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wtptz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xgift')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mcqcx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/klzjl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gflnd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iradk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gozak')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/smxed')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json index f4feba22..9a61ac42 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,632 +1,551 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emsbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emsbu/taspf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emsbu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emsbu/taspf/vejum')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emsbu/schedules/taspf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/egbmt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/egbmt/livgj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/egbmt')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/egbmt/livgj/iwhgj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/egbmt/schedules/livgj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vdkwz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vdkwz/suqcp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vdkwz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vdkwz/suqcp/hlbzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vdkwz/schedules/suqcp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/orrsd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/orrsd/uljye')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/orrsd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/orrsd/uljye/awdzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/orrsd/schedules/uljye')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jkfmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jkfmf/uygjs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jkfmf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jkfmf/uygjs/chfbc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jkfmf/schedules/uygjs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zsxlq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zsxlq/pnmfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zsxlq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zsxlq/pnmfq/kxltr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zsxlq/schedules/pnmfq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wsxay')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wsxay/gxlxq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wsxay')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wsxay/gxlxq/snuml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wsxay/schedules/gxlxq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cntqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cntqf/rgtcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cntqf')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cntqf/rgtcv/scyjs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cntqf/schedules/rgtcv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/yrlzu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/enptd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/plsgu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zqiop')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/arivj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/spcvb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pifot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/drxsd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebsites.json index 3728128b..737bd17d 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/alertwebsites.json @@ -1,706 +1,614 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqmuj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uqmuj/elqca')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uqmuj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqmuj/elqca/faidm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uqmuj/schedules/elqca')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ydpjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ydpjz/uolvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ydpjz')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ydpjz/uolvh/ngfep')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ydpjz/schedules/uolvh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/avmvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avmvh/ngptz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avmvh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avmvh/ngptz/ugbae')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avmvh/schedules/ngptz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/htjvh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/htjvh/xdtyz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/htjvh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/htjvh/xdtyz/uzbbt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/htjvh/schedules/xdtyz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vdtnm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vdtnm/jcvkc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vdtnm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vdtnm/jcvkc/lwuhk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vdtnm/schedules/jcvkc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xmzsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xmzsv/vexua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xmzsv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xmzsv/vexua/qzhfo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xmzsv/schedules/vexua')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/yfznq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/yfznq/keapd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/yfznq')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/yfznq/keapd/brwmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/yfznq/schedules/keapd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ivjml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ivjml/lndni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ivjml')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ivjml/lndni/pewtx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ivjml/schedules/lndni')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pytfx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pytfx/zcqld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pytfx')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pytfx/zcqld/tgxwr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pytfx/schedules/zcqld')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/dgfdu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/subho')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jmaov')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ebwma')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wppsz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mxohz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dyjtv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nvcaw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/alszv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/application.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/application.json index 9f561709..aebdb28b 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/application.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/application.json @@ -1,2344 +1,2200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cortex-processing')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cortex-reporting')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-messaging-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-processingenginestorage-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-processingenginetasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-processing')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-reporting')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginestorage-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginetasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json index 4d69e179..45f14f83 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/integration.json b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/integration.json index 16dfd685..b4a375bb 100644 --- a/Sitecore 9.1.0/XDB/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.1.0/XDB/addons/Monitoring/nested/integration.json @@ -1,437 +1,438 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginestorage-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginetasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cortex-processing','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cortex-reporting','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginestorage-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginetasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-processing','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-reporting','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/README.md b/Sitecore 9.1.0/XM/addons/Monitoring/README.md index 4997b670..41eb2af5 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/README.md +++ b/Sitecore 9.1.0/XM/addons/Monitoring/README.md @@ -8,12 +8,12 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group. | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -25,12 +25,12 @@ Steps to configure the Sitecore deployment parameters to include the Application { "name": "monitoring", "templateLink": "", - "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "parameters": { + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.json b/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.json index 5f5d4a92..ba563fd5 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.json @@ -1,338 +1,363 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "solrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertcacheredis.json index 892d6d81..c24d25d8 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertcacheredis.json @@ -1,114 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wyuze')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wyuze/odbnx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wyuze')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wyuze/odbnx/adnyq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wyuze/schedules/odbnx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } -} + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/vhmrg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json index 8edc8682..6416cac0 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/llpfe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/llpfe/ftmal')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/llpfe')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/llpfe/ftmal/iucxw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/llpfe/schedules/ftmal')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/eshra')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json index e7bf3efb..3927236a 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,1816 +1,1559 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ixrdp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ixrdp/mzmah')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ixrdp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ixrdp/mzmah/swtzr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ixrdp/schedules/mzmah')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ibgtw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ibgtw/gfybu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ibgtw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ibgtw/gfybu/ydtxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ibgtw/schedules/gfybu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zdvlp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zdvlp/iousn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zdvlp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zdvlp/iousn/gmecn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zdvlp/schedules/iousn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dqwct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dqwct/xkhov')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dqwct')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dqwct/xkhov/dhuil')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dqwct/schedules/xkhov')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ebjxv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ebjxv/xnotl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ebjxv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ebjxv/xnotl/bejxu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ebjxv/schedules/xnotl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kfjti')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kfjti/ndtvg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kfjti')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kfjti/ndtvg/axwoi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kfjti/schedules/ndtvg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qjkws')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qjkws/idzqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qjkws')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qjkws/idzqf/hzlch')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qjkws/schedules/idzqf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nixsz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nixsz/rmyda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nixsz')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nixsz/rmyda/uqpxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nixsz/schedules/rmyda')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hpdqb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hpdqb/pgwni')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hpdqb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hpdqb/pgwni/aqozc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hpdqb/schedules/pgwni')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kpvzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kpvzn/qesvg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kpvzn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kpvzn/qesvg/wfgty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kpvzn/schedules/qesvg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/eoijl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eoijl/jixbc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eoijl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eoijl/jixbc/utqbd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eoijl/schedules/jixbc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uqxkm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uqxkm/ajykg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uqxkm')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uqxkm/ajykg/hwcva')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uqxkm/schedules/ajykg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kembj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kembj/cymam')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kembj')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kembj/cymam/rmjdx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kembj/schedules/cymam')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rwryi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rwryi/yhntb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rwryi')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rwryi/yhntb/vqyei')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rwryi/schedules/yhntb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nbbqy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nbbqy/trwwp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nbbqy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nbbqy/trwwp/ptjsu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nbbqy/schedules/trwwp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xrvrk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xrvrk/fnwpf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xrvrk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xrvrk/fnwpf/esfom')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xrvrk/schedules/fnwpf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zsvdn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zsvdn/lxpqi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zsvdn')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zsvdn/lxpqi/cxpeb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zsvdn/schedules/lxpqi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/udumc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/udumc/aqiyo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/udumc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/udumc/aqiyo/tlfjr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/udumc/schedules/aqiyo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/plnft')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/plnft/czcde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/plnft')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/plnft/czcde/xdxnp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/plnft/schedules/czcde')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/joxan')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/joxan/snirv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/joxan')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/joxan/snirv/ciamx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/joxan/schedules/snirv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lumkf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lumkf/nizyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lumkf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lumkf/nizyh/pnuvj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lumkf/schedules/nizyh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ytswt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ytswt/xskra')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ytswt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ytswt/xskra/odywr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ytswt/schedules/xskra')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ylwnl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ylwnl/bwoxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ylwnl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ylwnl/bwoxk/jjcmd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ylwnl/schedules/bwoxk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/pdwks')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/pdwks/clsdv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/pdwks')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/pdwks/clsdv/swufb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/pdwks/schedules/clsdv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xuklv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vfxwj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jzvqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tfguo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kofys')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dwedt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zlcyv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/viqpm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/inamy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hrzja')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ilbta')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lyivz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ngzbh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uzvjr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nujqc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmigw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nywhb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ltgus')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fsmli')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rdnib')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sfcyh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mqjst')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mgwgi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/reojf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebserverfarms.json index 0c5ccef3..f9482b07 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,484 +1,425 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zfzuq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zfzuq/spocl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zfzuq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zfzuq/spocl/hhvxl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zfzuq/schedules/spocl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zhvml')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zhvml/jglba')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zhvml')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zhvml/jglba/rzfpu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zhvml/schedules/jglba')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rbudc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rbudc/avidz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rbudc')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rbudc/avidz/zarlg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rbudc/schedules/avidz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gjtaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gjtaq/pwzdr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gjtaq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gjtaq/pwzdr/tsazj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gjtaq/schedules/pwzdr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lgkwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lgkwo/kbkcw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lgkwo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lgkwo/kbkcw/qlwey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lgkwo/schedules/kbkcw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/sjgxk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/sjgxk/apzsr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/sjgxk')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/sjgxk/apzsr/pliio')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/sjgxk/schedules/apzsr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gwtbp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ecrio')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/arbqb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/brdhn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnbwf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njlvx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebsites.json index e695ca91..d48dc554 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/alertwebsites.json @@ -1,262 +1,236 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/axvde')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/axvde/ejdnl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/axvde')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/axvde/ejdnl/bjchf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/axvde/schedules/ejdnl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hmodd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hmodd/hdgnd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hmodd')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hmodd/hdgnd/oyfwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hmodd/schedules/hdgnd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ylahc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ylahc/bfsna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ylahc')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ylahc/bfsna/irhnu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ylahc/schedules/bfsna')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/dpofe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgoby')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vrxho')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/application.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/application.json index 08d2f1d9..f9b8d799 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/application.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/application.json @@ -1,1219 +1,1150 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-si')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-si-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json index b889a884..2e82182e 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/availability.json @@ -1,191 +1,200 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.1.0/XM/addons/Monitoring/nested/integration.json b/Sitecore 9.1.0/XM/addons/Monitoring/nested/integration.json index 375921b8..265f5a91 100644 --- a/Sitecore 9.1.0/XM/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.1.0/XM/addons/Monitoring/nested/integration.json @@ -1,212 +1,213 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-si-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-si','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/README.md b/Sitecore 9.1.0/XP/addons/Monitoring/README.md index fb4c9f9b..ca80b84c 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/README.md +++ b/Sitecore 9.1.0/XP/addons/Monitoring/README.md @@ -8,12 +8,12 @@ The **deploymentId** parameter is filled in by the PowerShell script. | Parameter | Description --------------------------------------------|------------------------------------------------ -| deploymentId | The prefix of the Sitecore resources names within a resource group. +| deploymentId | The prefix of the Sitecore resources names within a resource group | omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | omsWorkspaceLocation | The location of the provisioned OMS. | applicationInsightsLocation | The location of the provisioned application insights. -| searchProvider | Sitecore instance Search Provider. +| searchProvider | Types of Search Provider, Azure or Solr. ## Deploying as part of Sitecore deployment @@ -25,12 +25,12 @@ Steps to configure the Sitecore deployment parameters to include the Application { "name": "monitoring", "templateLink": "", - "parameters": { - "omsWorkspaceMetricsRetentionDays" : , + "parameters": { + "omsWorkspaceMetricsRetentionDays" : , "omsWorkspaceAlertRecipients" : "", "omsWorkspaceLocation" : "", - "applicationInsightsLocation" : "", - "searchProvider" : "" + "applicationInsightsLocation" : "", + "searchProvider" : "" } } ``` \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.json b/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.json index 5f5d4a92..ba563fd5 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.json @@ -1,338 +1,363 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": { - "deploymentId": null, - "solrConnectionString": null - } - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceAlertRecipients": null, - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "applicationInsightsLocation": null - } - }, - "deploymentId": { - "type": "string", - "defaultValue": "[parameters('standard').deploymentId]" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention from 30 to 730." - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "applicationInsightsLocation": { - "type": "string", - "defaultValue": "[parameters('extension').applicationInsightsLocation]", - "allowedValues": [ - "Australia East", - "Canada Central", - "Central India", - "East US", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "West Europe", - "West US 2" - ], - "metadata": { - "description": "the Location in which your Application Insight exists" - } - }, - "templateLinkBase": { - "type": "string", - "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" - }, - "templateLinkAccessToken": { - "type": "securestring", - "defaultValue": "" - }, - "searchProvider": { - "type": "string", - "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", - "allowedValues": [ - "Azure", - "Solr" - ] - } - }, - "variables": { - "resourcesApiVersion": "2016-09-01" - }, - "resources": [{ - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-infrastructure')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "omsWorkspaceMetricsRetentionDays": { - "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'-application')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "omsWorkspaceLocation": { - "value": "[parameters('omsWorkspaceLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-integration')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "searchProvider": { - "value": "[parameters('searchProvider')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-availability')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", - "contentVersion": "1.0.0.0" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - }, - "applicationInsightsLocation": { - "value": "[parameters('applicationInsightsLocation')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertcacheredis')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsearchsearchservices')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertsqlserversdatabases')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebserverfarms')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - }, - { - "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name,'alertwebsites')]", - "type": "Microsoft.Resources/deployments", - "dependson": [ - "[concat(deployment().name,'-infrastructure')]" - ], - "properties": { - "mode": "incremental", - "templateLink": { - "contentVersion": "1.0.0.0", - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" - }, - "parameters": { - "deploymentId": { - "value": "[parameters('deploymentId')]" - }, - "infrastructure": { - "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" - }, - "omsWorkspaceAlertRecipients": { - "value": "[parameters('omsWorkspaceAlertRecipients')]" - } - } - } - } - ] + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.parameters.json index 05fc9b92..d548de05 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.parameters.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/azuredeploy.parameters.json @@ -6,7 +6,7 @@ "value": "" }, "omsWorkspaceMetricsRetentionDays": { - "value": + "value": "" }, "omsWorkspaceAlertRecipients": { "value": "" @@ -16,9 +16,6 @@ }, "applicationInsightsLocation": { "value": "" - }, - "searchProvider": { - "value": "" } } } diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertcacheredis.json index 618bddd2..c0b6fb2c 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertcacheredis.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertcacheredis.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eosaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/eosaq/tohzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/eosaq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/eosaq/tohzn/zgqkx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/eosaq/schedules/tohzn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", - "Description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/ywhkk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json index 950db578..9d2e9d43 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsearchsearchservices.json @@ -1,113 +1,110 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/opezf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", - "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/opezf/thelf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/opezf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/opezf/thelf/plixd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/opezf/schedules/thelf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", - "Description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "30", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/byzhm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json index 0de6affc..2b5a826a 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -1,7144 +1,6095 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jxdfe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jxdfe/pdufn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jxdfe')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jxdfe/pdufn/wyrzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jxdfe/schedules/pdufn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bphcj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bphcj/xfqcr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bphcj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bphcj/xfqcr/lthxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bphcj/schedules/xfqcr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zprim')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zprim/bqwem')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zprim')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zprim/bqwem/remhz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zprim/schedules/bqwem')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tgjac')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tgjac/zhiyw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tgjac')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tgjac/zhiyw/gdnua')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tgjac/schedules/zhiyw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lefbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lefbs/dkagq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lefbs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lefbs/dkagq/wncig')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lefbs/schedules/dkagq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ouwcl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ouwcl/zueaj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ouwcl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ouwcl/zueaj/hhfkk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ouwcl/schedules/zueaj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tjliv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tjliv/ermhq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tjliv')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tjliv/ermhq/ptdko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tjliv/schedules/ermhq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uvqxn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uvqxn/vqlsg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uvqxn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uvqxn/vqlsg/whqcy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uvqxn/schedules/vqlsg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/iezya')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/iezya/hnffi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/iezya')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/iezya/hnffi/fzitf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/iezya/schedules/hnffi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lzgsj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lzgsj/erqno')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lzgsj')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lzgsj/erqno/krogn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lzgsj/schedules/erqno')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akmsy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akmsy/zjkdr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akmsy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akmsy/zjkdr/mlhed')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akmsy/schedules/zjkdr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cgyit')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cgyit/sglia')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cgyit')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cgyit/sglia/opeso')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cgyit/schedules/sglia')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xuofm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xuofm/dglct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xuofm')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xuofm/dglct/duheo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xuofm/schedules/dglct')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wilnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wilnb/tzsmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wilnb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wilnb/tzsmf/wvjzl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wilnb/schedules/tzsmf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/evvsy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/evvsy/puffs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/evvsy')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/evvsy/puffs/mpiyw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/evvsy/schedules/puffs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/awbej')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/awbej/myokf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/awbej')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/awbej/myokf/qbmtg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/awbej/schedules/myokf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vgpwd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vgpwd/dkfaz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vgpwd')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vgpwd/dkfaz/xwkhz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vgpwd/schedules/dkfaz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tgvfk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tgvfk/rhsui')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tgvfk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tgvfk/rhsui/ogxwr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tgvfk/schedules/rhsui')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/akozy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/akozy/jxbun')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/akozy')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/akozy/jxbun/clzsy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/akozy/schedules/jxbun')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vdhrb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vdhrb/kphoc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vdhrb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vdhrb/kphoc/qugfx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vdhrb/schedules/kphoc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gicwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gicwo/fgvkn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gicwo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gicwo/fgvkn/aotge')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gicwo/schedules/fgvkn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dhkeb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dhkeb/etnnq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dhkeb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dhkeb/etnnq/hzpbx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dhkeb/schedules/etnnq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/syvzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/syvzt/fpnld')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/syvzt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/syvzt/fpnld/yehgd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/syvzt/schedules/fpnld')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kbdnk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kbdnk/euxma')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kbdnk')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kbdnk/euxma/uyzck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kbdnk/schedules/euxma')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ykhmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ykhmp/fqedp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ykhmp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ykhmp/fqedp/rsvow')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ykhmp/schedules/fqedp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/swnuu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/swnuu/zrazw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/swnuu')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/swnuu/zrazw/siqqc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/swnuu/schedules/zrazw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bqxgr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bqxgr/ioznt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bqxgr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bqxgr/ioznt/qrmfg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bqxgr/schedules/ioznt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/holqa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/holqa/wsuzi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/holqa')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/holqa/wsuzi/fcuqe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/holqa/schedules/wsuzi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/havcv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/havcv/sjpou')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/havcv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/havcv/sjpou/amgki')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/havcv/schedules/sjpou')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zjyhc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zjyhc/kcniz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zjyhc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zjyhc/kcniz/spjux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zjyhc/schedules/kcniz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/avjct')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/avjct/acpwd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/avjct')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/avjct/acpwd/qodgy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/avjct/schedules/acpwd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wsdnm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wsdnm/xzvjo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wsdnm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wsdnm/xzvjo/dwsik')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wsdnm/schedules/xzvjo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rmaif')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rmaif/bgazw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rmaif')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rmaif/bgazw/dpjgt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rmaif/schedules/bgazw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xwkya')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xwkya/wwdfd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xwkya')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xwkya/wwdfd/nerds')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xwkya/schedules/wwdfd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mpvbt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mpvbt/adszj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mpvbt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mpvbt/adszj/pzbfp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mpvbt/schedules/adszj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ytpnz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ytpnz/zefmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ytpnz')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ytpnz/zefmp/noygc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ytpnz/schedules/zefmp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mwclh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mwclh/cihst')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mwclh')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwclh/cihst/jxlyb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mwclh/schedules/cihst')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fggvy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fggvy/szrhc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fggvy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fggvy/szrhc/pjlqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fggvy/schedules/szrhc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tavdo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tavdo/nxugp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tavdo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tavdo/nxugp/txcmb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tavdo/schedules/nxugp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qerpb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qerpb/zgxwi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qerpb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qerpb/zgxwi/rodel')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qerpb/schedules/zgxwi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rhgnb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rhgnb/rzcfq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rhgnb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rhgnb/rzcfq/sijbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rhgnb/schedules/rzcfq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/tmqxr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/tmqxr/cymzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/tmqxr')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/tmqxr/cymzx/yanty')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/tmqxr/schedules/cymzx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/thybd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/thybd/wlona')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/thybd')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/thybd/wlona/eiuyl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/thybd/schedules/wlona')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ciewv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ciewv/nppnm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ciewv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ciewv/nppnm/nvoqp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ciewv/schedules/nppnm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/upikb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/upikb/zwtbs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/upikb')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/upikb/zwtbs/thugs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/upikb/schedules/zwtbs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/heebf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/heebf/qabdv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/heebf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/heebf/qabdv/ywqwk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/heebf/schedules/qabdv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cfirg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cfirg/qdarf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cfirg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cfirg/qdarf/gvyqa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cfirg/schedules/qdarf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ptdca')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ptdca/beubm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ptdca')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ptdca/beubm/dqkll')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ptdca/schedules/beubm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qnewd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qnewd/rpcvb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qnewd')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qnewd/rpcvb/ukezk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qnewd/schedules/rpcvb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ssplb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ssplb/fmwbp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ssplb')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ssplb/fmwbp/bwxfn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ssplb/schedules/fmwbp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nksmf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nksmf/oqprk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nksmf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nksmf/oqprk/rpted')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nksmf/schedules/oqprk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vwqfs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vwqfs/zqmph')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vwqfs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vwqfs/zqmph/hhobs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vwqfs/schedules/zqmph')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/foirg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/foirg/kodsc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/foirg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/foirg/kodsc/eimun')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/foirg/schedules/kodsc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/esbzp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/esbzp/iwxie')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/esbzp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/esbzp/iwxie/kjghs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/esbzp/schedules/iwxie')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/flqge')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/flqge/sjygq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/flqge')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/flqge/sjygq/wrmzi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/flqge/schedules/sjygq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wxatx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wxatx/thpvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wxatx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wxatx/thpvw/rmwyf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wxatx/schedules/thpvw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kistl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kistl/jbzck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kistl')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kistl/jbzck/fcqwi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kistl/schedules/jbzck')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gswnw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gswnw/oaexi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gswnw')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gswnw/oaexi/thcql')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gswnw/schedules/oaexi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mavej')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mavej/qkhhq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mavej')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mavej/qkhhq/jzsxm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mavej/schedules/qkhhq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wrleg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wrleg/vkqhj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wrleg')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wrleg/vkqhj/mhhag')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wrleg/schedules/vkqhj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qxlna')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qxlna/brnhc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qxlna')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qxlna/brnhc/nubhs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qxlna/schedules/brnhc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kjrec')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kjrec/rsrlz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kjrec')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kjrec/rsrlz/lsnrj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kjrec/schedules/rsrlz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/twjvs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/twjvs/hqfzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/twjvs')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/twjvs/hqfzd/pouzd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/twjvs/schedules/hqfzd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xzpao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xzpao/znhdy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xzpao')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xzpao/znhdy/fxjbz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xzpao/schedules/znhdy')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/harjp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/harjp/osjtm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/harjp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/harjp/osjtm/vovfu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/harjp/schedules/osjtm')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nxnyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nxnyh/udgsp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nxnyh')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nxnyh/udgsp/stzkv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nxnyh/schedules/udgsp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/emhgb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/emhgb/tomdz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/emhgb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/emhgb/tomdz/ujsoc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/emhgb/schedules/tomdz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fcayn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fcayn/glnvw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fcayn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fcayn/glnvw/rpsbj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fcayn/schedules/glnvw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fyoxi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fyoxi/retlb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fyoxi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fyoxi/retlb/ufozz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fyoxi/schedules/retlb')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/klgxu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/klgxu/bpeik')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/klgxu')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/klgxu/bpeik/qekkc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/klgxu/schedules/bpeik')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/smnix')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/smnix/stkop')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/smnix')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/smnix/stkop/izjko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/smnix/schedules/stkop')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xwcbt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xwcbt/owmzg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xwcbt')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xwcbt/owmzg/qcwec')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xwcbt/schedules/owmzg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nyijw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nyijw/xjpis')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nyijw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nyijw/xjpis/qisyj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nyijw/schedules/xjpis')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qailv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qailv/kwcux')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qailv')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qailv/kwcux/ihmmw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qailv/schedules/kwcux')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cnifq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cnifq/vikqz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cnifq')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cnifq/vikqz/rslkc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cnifq/schedules/vikqz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cssti')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cssti/euadr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cssti')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cssti/euadr/nejgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cssti/schedules/euadr')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wrsqf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wrsqf/zmdon')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wrsqf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wrsqf/zmdon/eewhu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wrsqf/schedules/zmdon')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/awlwi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/awlwi/vhroi')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/awlwi')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/awlwi/vhroi/kdltk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/awlwi/schedules/vhroi')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/kutnw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/kutnw/ydtpj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/kutnw')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/kutnw/ydtpj/ojhqx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/kutnw/schedules/ydtpj')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/nvmvd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/nvmvd/uavee')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/nvmvd')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/nvmvd/uavee/prqdz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/nvmvd/schedules/uavee')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/lpzgf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/lpzgf/obnhg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/lpzgf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/lpzgf/obnhg/mwedr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/lpzgf/schedules/obnhg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uwjrv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uwjrv/hewrd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uwjrv')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uwjrv/hewrd/vohsv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uwjrv/schedules/hewrd')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gnhub')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gnhub/nwsnq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gnhub')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gnhub/nwsnq/jvckd')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gnhub/schedules/nwsnq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/onzja')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/onzja/nkoyh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/onzja')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/onzja/nkoyh/yonmz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/onzja/schedules/nkoyh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/dquxx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/dquxx/ntoaq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/dquxx')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/dquxx/ntoaq/onrpk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/dquxx/schedules/ntoaq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qsmly')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qsmly/tdhwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qsmly')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qsmly/tdhwa/wpdaa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qsmly/schedules/tdhwa')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/djzrp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/djzrp/hcmqt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/djzrp')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/djzrp/hcmqt/uadzp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/djzrp/schedules/hcmqt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mczdf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mczdf/vdbnw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mczdf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mczdf/vdbnw/lwehr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mczdf/schedules/vdbnw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/wkerf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/wkerf/mnxdt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/wkerf')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/wkerf/mnxdt/zyivl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/wkerf/schedules/mnxdt')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mqeko')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mqeko/iryue')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mqeko')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mqeko/iryue/tmycs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mqeko/schedules/iryue')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ssqci')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ssqci/sahqw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ssqci')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ssqci/sahqw/ajboq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ssqci/schedules/sahqw')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gyapm')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gyapm/nubuh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gyapm')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gyapm/nubuh/xglao')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gyapm/schedules/nubuh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/uojes')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/uojes/figzq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/uojes')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/uojes/figzq/tnvju')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/uojes/schedules/figzq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", - "Severity": "critical", - "Threshold": { - "Operator": "gt", - "Value": "75", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ustch')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ustch/whrev')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ustch')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ustch/whrev/cpuuy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ustch/schedules/whrev')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/qqryc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/qqryc/tordx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/qqryc')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/qqryc/tordx/vfrhq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/qqryc/schedules/tordx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ceflo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "3" - }, - { - "name": "frequency", - "value": "15" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ceflo/evbfk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ceflo')]" - ], - "properties": { - "etag": "*", - "interval": "15", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ceflo/evbfk/pyghl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ceflo/schedules/evbfk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", - "Description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/eksyf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tmwce')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/liyin')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/burew')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpxca')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twhaj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uwsoa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/txbdo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pvjtw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/edbrt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/stmjh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xfhjk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wnijk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yejws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zkjet')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vaxin')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tbvod')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xvukd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qxcvs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/loaef')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eaory')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cvysr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/akcqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/morha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yhoeg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hlypo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tptkg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pndcb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dwqmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uguja')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yicdv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sqnsb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/piyuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/onjtu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fjebg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lbawc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tfyws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vrosl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pgydk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jkkps')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ptdnb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rwuty')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xcvut')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ipkny')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/maefb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cspul')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nzpfr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gtnme')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/miulo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bkpfl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qzniq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wrbjv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pgdsf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wbuzo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xvdza')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yxhve')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dopyi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cfyjk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xodsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ddgjv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fgyuq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iiswh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/liays')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zcsow')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mqlru')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lpyug')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zbdxa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sbpha')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/stbip')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lsdxk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zibsu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wuxtr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gidvu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mnjae')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qaotu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/phykj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lmzdw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iuldg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oyrav')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mbynh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/plcsm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zixhh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wqfmu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bfldk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uutwc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fopdy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/reopk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pnjls')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/frvqk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pjayv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lzywg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cavdy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/slpuh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/izhxo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nzrjp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qxmcq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebserverfarms.json index 484d91c9..2dee87db 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebserverfarms.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebserverfarms.json @@ -1,1076 +1,929 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdopw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gdopw/ivsyc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gdopw')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gdopw/ivsyc/clyql')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gdopw/schedules/ivsyc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jbvea')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jbvea/lyivz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jbvea')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jbvea/lyivz/xcnmp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jbvea/schedules/lyivz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/xhyzy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/xhyzy/xvafs')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/xhyzy')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/xhyzy/xvafs/meijb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/xhyzy/schedules/xvafs')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/hbhgx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/hbhgx/wumkh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/hbhgx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/hbhgx/wumkh/xkhzt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/hbhgx/schedules/wumkh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/jidnx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/jidnx/krcsk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/jidnx')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/jidnx/krcsk/qodmx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/jidnx/schedules/krcsk')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/ltmzp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/ltmzp/yitxg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/ltmzp')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/ltmzp/yitxg/ekriu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/ltmzp/schedules/yitxg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/synwo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/synwo/jemck')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/synwo')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/synwo/jemck/cqthj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/synwo/schedules/jemck')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rodwr')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rodwr/rgnkp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rodwr')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rodwr/rgnkp/adykx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rodwr/schedules/rgnkp')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fmdmq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fmdmq/ojhjz')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fmdmq')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fmdmq/ojhjz/frpuw')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fmdmq/schedules/ojhjz')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gvuxe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gvuxe/apzoe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gvuxe')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gvuxe/apzoe/fjdvl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gvuxe/schedules/apzoe')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/vdfzn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/vdfzn/bijdo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/vdfzn')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/vdfzn/bijdo/vmphy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/vdfzn/schedules/bijdo')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/bskzj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/bskzj/bicdl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/bskzj')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/bskzj/bicdl/fhmmk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/bskzj/schedules/bicdl')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/fcvht')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/fcvht/zpnkq')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/fcvht')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/fcvht/zpnkq/ewcfj')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/fcvht/schedules/zpnkq')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mwhla')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "2" - }, - { - "name": "frequency", - "value": "10" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mwhla/hafey')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mwhla')]" - ], - "properties": { - "etag": "*", - "interval": "10", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mwhla/hafey/jyvcb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mwhla/schedules/hafey')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "95", - "MetricsTrigger": { - "TriggerCondition": "Consecutive", - "Operator": "gt", - "Value": "30" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/jvzre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pdcee')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/npucl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jwkrt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cqtgu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wchtg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ndrue')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rmfhj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fnriq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wcskz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jhpeh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mptzy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/igbzh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njnoh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebsites.json index 9f35db98..4f143779 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebsites.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/alertwebsites.json @@ -1,928 +1,803 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "actionGroupName": { - "defaultValue": "[parameters('infrastructure').actionGroupName]", - "metadata": { - "description": "The name of the action group to be associated with the alerts actions" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rcpyk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rcpyk/uwynf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rcpyk')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rcpyk/uwynf/rizhc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rcpyk/schedules/uwynf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/enasp')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/enasp/bmzzx')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/enasp')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/enasp/bmzzx/kdqil')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/enasp/schedules/bmzzx')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/cundy')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/cundy/fhjdc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/cundy')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/cundy/fhjdc/jyveu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/cundy/schedules/fhjdc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/zgyxo')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/zgyxo/nolpv')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/zgyxo')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/zgyxo/nolpv/fuspk')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/zgyxo/schedules/nolpv')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/rhpwa')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/rhpwa/luyfg')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/rhpwa')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/rhpwa/luyfg/ulats')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/rhpwa/schedules/luyfg')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/gfwod')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/gfwod/tflnh')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/gfwod')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/gfwod/tflnh/osjlt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/gfwod/schedules/tflnh')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/orwbu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/orwbu/gnwtf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/orwbu')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/orwbu/gnwtf/aslwe')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/orwbu/schedules/gnwtf')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/mcqnl')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/mcqnl/vwyji')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/mcqnl')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/mcqnl/vwyji/esrid')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/mcqnl/schedules/vwyji')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/axsbt')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/axsbt/rbywu')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/axsbt')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/axsbt/rbywu/vhife')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/axsbt/schedules/rbywu')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/npchf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/npchf/oohrc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/npchf')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/npchf/oohrc/swnuc')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/npchf/schedules/oohrc')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/caqod')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/caqod/letda')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/caqod')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/caqod/letda/hrsen')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/caqod/schedules/letda')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - }, - { - "name": "[concat(parameters('omsWorkspaceName'), '/quskb')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "tags": { - - }, - "properties": { - "etag": "*", - "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", - "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "version": "2.0", - "category": "AlertIbiza", - "tags": [{ - "name": "tier", - "value": "1" - }, - { - "name": "frequency", - "value": "5" - } - ] - }, - "resources": [{ - "name": "[Concat(parameters('omsWorkspaceName'),'/quskb/kjybn')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[Concat('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/savedSearches/quskb')]" - ], - "properties": { - "etag": "*", - "interval": "5", - "queryTimeSpan": "60", - "enabled": true, - "NearRealTime": false - }, - "resources": [{ - "name": "[concat(parameters('omsWorkspaceName'), '/quskb/kjybn/bgqrf')]", - "type": "Microsoft.OperationalInsights/workspaces/savedSearches/schedules/actions", - "apiVersion": "[variables('alertResourcesApiVersion')]", - "dependsOn": [ - "[concat('Microsoft.OperationalInsights/workspaces/',parameters('omsWorkspaceName'),'/savedSearches/quskb/schedules/kjybn')]" - ], - "properties": { - "etag": "*", - "Type": "Alert", - "Name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", - "Description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", - "Severity": "warning", - "Threshold": { - "Operator": "gt", - "Value": "10", - "MetricsTrigger": { - "TriggerCondition": "Total", - "Operator": "gt", - "Value": "0" - } - }, - "Throttling": { - "DurationInMinutes": "0" - }, - "AzNsNotification": { - "GroupIds": [ - "[variables('actionGroupResourceId')]" - ], - "CustomEmailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" - }, - "ScheduleTypeSpecified": false, - "Version": 2 - } - }] - }] - } - ], - "variables": { - "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", - "alertResourcesApiVersion": "2017-04-26-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xpjdi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aqxpc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gkeif')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zfqbl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cgtji')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/suksn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mamdf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cgjum')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/itjpb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ctoqd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gtmad')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dwtyz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/application.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/application.json index fdf15897..959432f9 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/application.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/application.json @@ -1,3094 +1,2900 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - }, - "omsWorkspaceLocation": { - "allowedValues": [ - "Australia Southeast", - "Canada Central", - "Central India", - "East US", - "Japan East", - "Southeast Asia", - "UK South", - "West Europe" - ], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - }, - "type": "string" - }, - "omsWorkspaceName": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", - "metadata": { - "description": "OMS Workspace name." - }, - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", - "Description": "Performance Overview Description", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('WEB APPLICATIONS LOAD')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU Time per app", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "sec" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('SEARCH SERVICES PERFORMANCE')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Search requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Search request latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Seconds", - "displayUnit": "Milliseconds" - }, - "customLabel": "ms" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Throttled requests per second", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "Operations", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Count" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Load", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Memory", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Bytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cortex-processing')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cortex-reporting')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-ops')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-si')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-collect')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-search')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "HTTP requests by response code", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Latency", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "TimeRange", - "baseUnit": "Milliseconds", - "displayUnit": "AUTO" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Database Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-core-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-forms-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-ma-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-master-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-messaging-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-pools-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-processingenginestorage-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-processingenginetasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-refdata-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-reporting-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard0-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-shard1-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-smm-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-tasks-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-web-db')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "DTU %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "CPU, Data I/O and Log I/O", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Storage Utilization", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Percentage", - "baseUnit": "ZeroToOne", - "displayUnit": "ZeroToOne" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - }, - { - "apiVersion": "[variables('dashboardApiVersion')]", - "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "type": "Microsoft.OperationalInsights/workspaces/views", - "location": "[parameters('omsWorkspaceLocation')]", - "properties": { - "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", - "Description": "Web App Hosting Plan Performance", - "Author": "Sitecore", - "Source": "Sitecore", - "Version": 2, - "Dashboard": [{ - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cd-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-cm-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-prc-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-rep-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-si-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - }, - { - "Id": "LineChartCalloutStackedBuilderBlade", - "Type": "Blade", - "Version": 0, - "Configuration": { - "General": { - "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", - "newGroup": false - }, - "charts": [{ - "Header": { - "Title": "CPU and Memory %", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "", - "baseUnit": "", - "displayUnit": "" - }, - "customLabel": "%" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Bytes In/Out", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Bits", - "baseUnit": "Bytes", - "displayUnit": "Kilobytes" - }, - "customLabel": "" - }, - "NavigationSelect": { - - } - } - }, - { - "Header": { - "Title": "Queue Length", - "Subtitle": "" - }, - "LineChart": { - "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", - "yAxis": { - "isLogarithmic": false, - "units": { - "baseUnitType": "Count", - "baseUnit": "Ones", - "displayUnit": "AUTO" - }, - "customLabel": "Requests" - }, - "NavigationSelect": { - - } - } - } - ] - } - } - ], - "Filters": [ - - ], - "OverviewTile": { - "Id": "MultiQueryDonutBuilderTile", - "Type": "OverviewTile", - "Version": 2, - "Configuration": { - "Donut": { - "Arcs": { - "Arc1": { - "Legend": "Critical", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" - }, - "Arc2": { - "Legend": "High-Load", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" - }, - "Arc3": { - "Legend": "Normal", - "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" - } - }, - "CenterLegend": { - "Text": "", - "Operation": "Sum", - "ArcsToSelect": { - "Arc1": true, - "Arc2": true, - "Arc3": true - } - }, - "Options": { - "colors": [ - "#ba141a", - "#ffb900", - "#009e49" - ] - } - }, - "Advanced": { - "DataFlowVerification": { - "Enabled": false, - "Query": "search * | limit 1 | project TimeGenerated", - "Message": "" - } - } - } - } - } - } - ], - "variables": { - "dashboardApiVersion": "2015-11-01-preview", - "sitecoreResourceGroup": "[resourceGroup().name]" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-processing')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-reporting')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginestorage-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginetasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json index 65c77555..b14a5562 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/availability.json @@ -1,347 +1,366 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationInsightsLocation": { - "metadata": { - "Description": "Location of the Application insights Resource" - }, - "type": "string" - }, - "deploymentId": { - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceAlertRecipients": { - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - }, - "type": "string" - } - }, - "resources": [{ - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - }, - { - "type": "Microsoft.Insights/webtests", - "apiVersion": "[variables('webTestApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" - }, - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "kind": "ping", - "properties": { - "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", - "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", - "Description": "a web test for performing a ping to test availability of the targeted web app", - "Enabled": true, - "Frequency": 300, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [{ - "Id": "us-il-ch1-azr" - }, - { - "Id": "us-ca-sjc-azr" - }, - { - "Id": "apac-sg-sin-azr" - }, - { - "Id": "emea-gb-db3-azr" - }, - { - "Id": "emea-au-syd-edge" - } - ], - "Configuration": { - "WebTest": "[concat(' ') ]" - } - }, - "resources": [{ - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "type": "microsoft.insights/alertrules", - "apiVersion": "[variables('alertRuleApiVersion')]", - "location": "[parameters('applicationInsightsLocation')]", - "dependsOn": [ - "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" - ], - "tags": { - "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", - "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" - }, - "properties": { - "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", - "description": "Alert to be triggered when the Web Test fails", - "isEnabled": true, - "condition": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - "datasource": { - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", - "metricName": "GSMT_AvRaW", - "resourceLocation": null, - "metricNamespace": null, - "legacyResourceId": null - }, - "windowSize": "PT5M", - "failedLocationCount": 2 - }, - "actions": [{ - "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", - "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", - "sendToServiceOwners": false, - "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" - }] - } - }] - } - ], - "variables": { - "alertRuleApiVersion": "2016-03-01", - "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "subscription": "[subscription().subscriptionId]", - "webTestApiVersion": "2015-05-01" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/infrastructure.json index 0ab21efa..aa8f0ee5 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/infrastructure.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/infrastructure.json @@ -1,100 +1,119 @@ { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "standard": { - "type": "secureObject", - "defaultValue": {} - }, - "extension": { - "type": "secureObject", - "defaultValue": { - "omsWorkspaceMetricsRetentionDays": null, - "omsWorkspaceLocation": null, - "omsWorkspaceAlertRecipients": null - } - }, - "deploymentId": { - "type": "string" - }, - "omsWorkspaceMetricsRetentionDays": { - "type": "int", - "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", - "metadata": { - "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" - } - }, - "omsWorkspaceLocation": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceLocation]", - "allowedValues": ["Australia Southeast", "Canada Central", "Central India", "East US", "Japan East", "Southeast Asia", "UK South", "West Europe"], - "metadata": { - "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" - } - }, - "omsWorkspaceAlertRecipients": { - "type": "string", - "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", - "metadata": { - "Description": "List of recipients for the email alert separated by semicolon" - } - } - }, - - "variables": { - "subscription": "[subscription().subscriptionId]", - "sitecoreResourceGroup": "[resourceGroup().name]", - "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", - "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", - "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", - "omsWorkspaceApiVersion": "2017-03-15-preview", - "omsWorkspaceSku": "standalone", - "actionGroupApiVersion": "2018-03-01", - "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" - }, - "resources": [{ - "apiVersion": "[variables('omsWorkspaceApiVersion')]", - "name": "[variables('omsWorkspaceName')]", - "type": "Microsoft.OperationalInsights/workspaces", - "location": "[parameters('omsWorkspaceLocation')]", - "id": "[variables('omsWorkspaceId')]", - "properties": { - "sku": { - "name": "[variables('omsWorkspaceSku')]" - }, - "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" - } - }, - { - "type": "Microsoft.Insights/actionGroups", - "apiVersion": "[variables('actionGroupApiVersion')]", - "name": "[variables('actionGroupName')]", - "location": "global", - "properties": { - "groupShortName": "ScAlerts", - "enabled": true, - "smsReceivers": [], - "webhookReceivers": [], - "copy": [{ - "name": "emailReceivers", - "count": "[length(variables('recipientsEmailsArray'))]", - "input": { - "name": "[concat('email',copyIndex('emailReceivers'))]", - "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]" - } - }] - } - } - ], - "outputs": { - "infrastructure": { - "type": "object", - "value": { - "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", - "omsWorkspaceName": "[variables('omsWorkspaceName')]", - "omsWorkspaceId": "[variables('omsWorkspaceId')]", - "actionGroupName": "[variables('actionGroupName')]" - } - } - } + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } } \ No newline at end of file diff --git a/Sitecore 9.1.0/XP/addons/Monitoring/nested/integration.json b/Sitecore 9.1.0/XP/addons/Monitoring/nested/integration.json index 74726496..39dd4cbe 100644 --- a/Sitecore 9.1.0/XP/addons/Monitoring/nested/integration.json +++ b/Sitecore 9.1.0/XP/addons/Monitoring/nested/integration.json @@ -1,587 +1,588 @@ { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deploymentId": { - "defaultValue": "[parameters('infrastructure').deploymentId]", - "type": "string" - }, - "infrastructure": { - "defaultValue": { - - }, - "type": "secureObject" - }, - "omsWorkspaceId": { - "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", - "metadata": { - "description": "OMS Workspace ID." - }, - "type": "string" - }, - "searchProvider": { - "defaultValue": "[parameters('infrastructure').searchProvider]", - "type": "string" - } - }, - "resources": [{ - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", - "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", - "condition": "[equals(parameters('searchProvider'), 'Azure')]", - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginestorage-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginetasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", - "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-si-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cortex-processing','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-cortex-reporting','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-si','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - }, - { - "apiVersion": "[variables('diagnosticSettingsApiVersion')]", - "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", - "type": "Microsoft.Web/sites/providers/diagnosticSettings", - "properties": { - "mode": "Incremental", - "workspaceId": "[parameters('omsWorkspaceId')]", - "logs": [ - - ], - "metrics": [{ - "enabled": true - }] - } - } - ], - "variables": { - "diagnosticSettingsApiVersion": "2017-05-01-preview" - } + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginestorage-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginetasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-processing','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-reporting','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] } \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/README.md b/Sitecore 9.1.1/XDB/addons/Monitoring/README.md new file mode 100644 index 00000000..9e672ae4 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/README.md @@ -0,0 +1,36 @@ +# Azure Monitoring module for Sitecore XDB Environment + +This template deploys the Sitecore Application Level Monitoring module and its related resources into a Sitecore XDB environment. + +## Parameters + +The **deploymentId** parameter is filled in by the PowerShell script. + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| deploymentId | The prefix of the Sitecore resources names within a resource group. +| omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. +| omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. +| omsWorkspaceLocation | The location of the provisioned OMS. +| applicationInsightsLocation | The location of the provisioned application insights. +| searchProvider | Types of Search Provider, Azure or Solr. + +## Deploying as part of Sitecore deployment + +Steps to configure the Sitecore deployment parameters to include the Application Level Monitoring module: + + * Add the following snippet to the `modules` parameter: + +```JSON +{ + "name": "monitoring", + "templateLink": "", + "parameters": { + "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceAlertRecipients" : "", + "omsWorkspaceLocation" : "", + "applicationInsightsLocation" : "", + "searchProvider" : "" + } +} +``` \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/azuredeploy.json b/Sitecore 9.1.1/XDB/addons/Monitoring/azuredeploy.json new file mode 100644 index 00000000..3ca88097 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/azuredeploy.json @@ -0,0 +1,334 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "xcSolrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').xcSolrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.1.1/XDB/addons/Monitoring/azuredeploy.parameters.json new file mode 100644 index 00000000..d548de05 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "deploymentId": { + "value": "" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "" + }, + "omsWorkspaceAlertRecipients": { + "value": "" + }, + "omsWorkspaceLocation": { + "value": "" + }, + "applicationInsightsLocation": { + "value": "" + } + } +} diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json new file mode 100644 index 00000000..0f2e71a6 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertsearchsearchservices.json @@ -0,0 +1,110 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/zlxqi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json new file mode 100644 index 00000000..056f2d86 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -0,0 +1,4961 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/wjzom')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lpihc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jocqn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ravtl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/chmft')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tiycb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kitbu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qvkht')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/trshz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fngtw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pkebk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/deequ')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pdpql')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dqjzp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pyxmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oycxw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mgdfi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/huwmx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bucpa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/leuqi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/efhzk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/corzx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rayvd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pjndq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/taljb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dvxlr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bmogq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hgefi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pzcez')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xeqbd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/awkhn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wqykj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/smekh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cndwn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/idmje')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zvmaz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zgnec')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fumyz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rfqsg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ztiqb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vpkmw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jhmws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hnrwr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lmefl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dshac')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xivdy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wpcaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ovszw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kexnt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/etmvv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sedqt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnttv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/okrcp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/floni')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wyhmx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/clhka')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kyecn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xfdmi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pacxg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fynai')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xipzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aidex')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/teozm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ehkzp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ztpgz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/htiou')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aqkiu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rgjds')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/faddp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gpdzs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/iehfd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fglhx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rypqb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dwokk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/scjtk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ebhbr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hmyrh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pkoev')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json new file mode 100644 index 00000000..5835076b --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertwebserverfarms.json @@ -0,0 +1,551 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/mgsrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fbjxo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ahuut')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mvmkj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/srhws')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ehpyz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gyieh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xscvv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertwebsites.json new file mode 100644 index 00000000..c79e3cc7 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/alertwebsites.json @@ -0,0 +1,614 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/auhpc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nqvud')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ljhoe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zyobo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yursh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/moalf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nkdlg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dqfyf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/shtkf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/application.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/application.json new file mode 100644 index 00000000..aebdb28b --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/application.json @@ -0,0 +1,2200 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-processing')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-reporting')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginestorage-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginetasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json new file mode 100644 index 00000000..45f14f83 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/availability.json @@ -0,0 +1,200 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/infrastructure.json new file mode 100644 index 00000000..aa8f0ee5 --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/infrastructure.json @@ -0,0 +1,119 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XDB/addons/Monitoring/nested/integration.json b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/integration.json new file mode 100644 index 00000000..b4a375bb --- /dev/null +++ b/Sitecore 9.1.1/XDB/addons/Monitoring/nested/integration.json @@ -0,0 +1,438 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginestorage-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginetasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-processing','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-reporting','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/README.md b/Sitecore 9.1.1/XM/addons/Monitoring/README.md new file mode 100644 index 00000000..41eb2af5 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/README.md @@ -0,0 +1,36 @@ +# Azure Monitoring module for Sitecore XM Environment + +This template deploys the Sitecore Application Level Monitoring module and its related resources into a Sitecore XM environment. + +## Parameters + +The **deploymentId** parameter is filled in by the PowerShell script. + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| deploymentId | The prefix of the Sitecore resources names within a resource group. +| omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. +| omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. +| omsWorkspaceLocation | The location of the provisioned OMS. +| applicationInsightsLocation | The location of the provisioned application insights. +| searchProvider | Types of Search Provider, Azure or Solr. + +## Deploying as part of Sitecore deployment + +Steps to configure the Sitecore deployment parameters to include the Application Level Monitoring module: + + * Add the following snippet to the `modules` parameter: + +```JSON +{ + "name": "monitoring", + "templateLink": "", + "parameters": { + "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceAlertRecipients" : "", + "omsWorkspaceLocation" : "", + "applicationInsightsLocation" : "", + "searchProvider" : "" + } +} +``` \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/azuredeploy.json b/Sitecore 9.1.1/XM/addons/Monitoring/azuredeploy.json new file mode 100644 index 00000000..ba563fd5 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/azuredeploy.json @@ -0,0 +1,363 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.1.1/XM/addons/Monitoring/azuredeploy.parameters.json new file mode 100644 index 00000000..d548de05 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "deploymentId": { + "value": "" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "" + }, + "omsWorkspaceAlertRecipients": { + "value": "" + }, + "omsWorkspaceLocation": { + "value": "" + }, + "applicationInsightsLocation": { + "value": "" + } + } +} diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertcacheredis.json new file mode 100644 index 00000000..32267736 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertcacheredis.json @@ -0,0 +1,110 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/xfhwz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json new file mode 100644 index 00000000..8eb36774 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertsearchsearchservices.json @@ -0,0 +1,110 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/vbnff')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json new file mode 100644 index 00000000..dd06df91 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -0,0 +1,1559 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/befzp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dnpdz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/swsgb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cprxt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/negdt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bczpu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ozbvc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/agnhs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dwcfw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hhbpv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fcysf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kngsb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tbikk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wpzrc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/savyr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlcme')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fqaqp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nodiv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojbnf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vjafs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ibwlh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bucuj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kegmi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bsemu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertwebserverfarms.json new file mode 100644 index 00000000..e1587ce9 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertwebserverfarms.json @@ -0,0 +1,425 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/pzvfe')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oqioa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hmwuo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nfowm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/idixj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hhlyp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertwebsites.json new file mode 100644 index 00000000..fabbe483 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/alertwebsites.json @@ -0,0 +1,236 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gmlnc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uyxay')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pkfbd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/application.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/application.json new file mode 100644 index 00000000..f9b8d799 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/application.json @@ -0,0 +1,1150 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json new file mode 100644 index 00000000..2e82182e --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/availability.json @@ -0,0 +1,200 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/infrastructure.json new file mode 100644 index 00000000..aa8f0ee5 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/infrastructure.json @@ -0,0 +1,119 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XM/addons/Monitoring/nested/integration.json b/Sitecore 9.1.1/XM/addons/Monitoring/nested/integration.json new file mode 100644 index 00000000..265f5a91 --- /dev/null +++ b/Sitecore 9.1.1/XM/addons/Monitoring/nested/integration.json @@ -0,0 +1,213 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/README.md b/Sitecore 9.1.1/XP/addons/Monitoring/README.md new file mode 100644 index 00000000..ca80b84c --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/README.md @@ -0,0 +1,36 @@ +# Azure Monitoring module for Sitecore XP Environment + +This template deploys the Sitecore Application Level Monitoring module and its related resources into a Sitecore XP environment. + +## Parameters + +The **deploymentId** parameter is filled in by the PowerShell script. + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| deploymentId | The prefix of the Sitecore resources names within a resource group +| omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. +| omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. +| omsWorkspaceLocation | The location of the provisioned OMS. +| applicationInsightsLocation | The location of the provisioned application insights. +| searchProvider | Types of Search Provider, Azure or Solr. + +## Deploying as part of Sitecore deployment + +Steps to configure the Sitecore deployment parameters to include the Application Level Monitoring module: + + * Add the following snippet to the `modules` parameter: + +```JSON +{ + "name": "monitoring", + "templateLink": "", + "parameters": { + "omsWorkspaceMetricsRetentionDays" : , + "omsWorkspaceAlertRecipients" : "", + "omsWorkspaceLocation" : "", + "applicationInsightsLocation" : "", + "searchProvider" : "" + } +} +``` \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/azuredeploy.json b/Sitecore 9.1.1/XP/addons/Monitoring/azuredeploy.json new file mode 100644 index 00000000..ba563fd5 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/azuredeploy.json @@ -0,0 +1,363 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "standard": { + "type": "secureObject", + "defaultValue": { + "deploymentId": null, + "searchServiceName": null, + "solrConnectionString": null + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "[if(empty(parameters('standard').solrConnectionString),'Azure','Solr')]", + "allowedValues": [ + "Azure", + "Solr" + ] + }, + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceAlertRecipients": null, + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "applicationInsightsLocation": null, + "templateLinkAccessToken": "" + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]" + }, + "searchServiceName": { + "type": "string", + "defaultValue": "[coalesce(parameters('standard').searchServiceName, concat(parameters('deploymentId'), '-as'))]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention from 30 to 730." + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "applicationInsightsLocation": { + "type": "string", + "defaultValue": "[parameters('extension').applicationInsightsLocation]", + "allowedValues": [ + "Australia East", + "Canada Central", + "Central India", + "East US", + "Japan East", + "North Europe", + "South Central US", + "Southeast Asia", + "UK South", + "West Europe", + "West US 2" + ], + "metadata": { + "description": "the Location in which your Application Insight exists" + } + }, + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "[if(contains(parameters('extension'), 'templateLinkAccessToken'), parameters('extension').templateLinkAccessToken, '')]" + } + }, + "variables": { + "resourcesApiVersion": "2016-09-01" + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-infrastructure')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "[parameters('omsWorkspaceMetricsRetentionDays')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name,'-application')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-integration')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "searchProvider": { + "value": "[parameters('searchProvider')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(deployment().name, '-availability')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + }, + "applicationInsightsLocation": { + "value": "[parameters('applicationInsightsLocation')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "name": "[concat(parameters('deploymentId'), '-alertsearchsearchservices')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebserverfarms')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertwebsites')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertsqlserversdatabases')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-alertcacheredis')]", + "type": "Microsoft.Resources/deployments", + "dependson": [ + "[concat(deployment().name,'-infrastructure')]" + ], + "properties": { + "mode": "Incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertcacheredis.json'), parameters('templateLinkAccessToken'))]", + "contentVersion": "1.0.0.0" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "infrastructure": { + "value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" + }, + "omsWorkspaceLocation": { + "value": "[parameters('omsWorkspaceLocation')]" + }, + "omsWorkspaceAlertRecipients": { + "value": "[parameters('omsWorkspaceAlertRecipients')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/azuredeploy.parameters.json b/Sitecore 9.1.1/XP/addons/Monitoring/azuredeploy.parameters.json new file mode 100644 index 00000000..d548de05 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/azuredeploy.parameters.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "deploymentId": { + "value": "" + }, + "omsWorkspaceMetricsRetentionDays": { + "value": "" + }, + "omsWorkspaceAlertRecipients": { + "value": "" + }, + "omsWorkspaceLocation": { + "value": "" + }, + "applicationInsightsLocation": { + "value": "" + } + } +} diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertcacheredis.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertcacheredis.json new file mode 100644 index 00000000..15d8ea9c --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertcacheredis.json @@ -0,0 +1,110 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/hpgdn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat('Redis Cache ',parameters('deploymentId'),'-redis',' reporting high server load')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName =\"serverLoad\";let resourceProvider =\"MICROSOFT.CACHE\";let resourceIdContains =\"/REDIS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Redis Cache ',parameters('deploymentId'),'-redis',' : Reporting high server load')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json new file mode 100644 index 00000000..b50e9804 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertsearchsearchservices.json @@ -0,0 +1,110 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/gdzyk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "displayName": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat('Azure Search ',parameters('deploymentId'),'-as',' reporting throttled search queries')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-as','\";let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m) | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check Azure Search ',parameters('deploymentId'),'-as',' : Reporting high rate of throttled search queries')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json new file mode 100644 index 00000000..65d7e14a --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertsqlserversdatabases.json @@ -0,0 +1,6095 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/wrmbl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gwjiq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ajwuy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/whrne')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/apanx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-core-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eosfx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-core-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-core-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-core-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zfxeb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tvhrg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uvqhs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tbyyo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xwodm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-exmmaster-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hamkz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-exmmaster-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-exmmaster-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-exmmaster-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xptfi')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/epdhl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/aabzh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ynkeq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/phsgv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-forms-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qnmxx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-forms-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-forms-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-forms-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ybwre')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/twiqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vgjit')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ytwqm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ugpgn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/njdop')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-ma-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zebou')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jqomh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/uatog')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xxkwy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tigcq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-master-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/tawxv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-master-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-master-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-master-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/muhpd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/deztk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lpkrw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/opecd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/adwqh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-messaging-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jfsaz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-messaging-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-messaging-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-messaging-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jofdw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jfcua')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ecsnq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/odvtb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zjvrx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-pools-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ycxrm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-pools-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-pools-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-pools-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rkxdy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jqspg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lmcpk')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vsppo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vupzc')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/urxax')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginestorage-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginestorage-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginestorage-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bklxp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kmeyu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lqxrw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wyxsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wqdby')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/nojgt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-processingenginetasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-processingenginetasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-processingenginetasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pdexs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dsoxh')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jyvlw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xquqy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yulsp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-refdata-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gmlds')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-refdata-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-refdata-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-refdata-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lrbgo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xvqcg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zrbec')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zewtf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sdeut')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-reporting-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/untku')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-reporting-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-reporting-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-reporting-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/avsqt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qccum')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojyld')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sqdhr')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/mehku')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard0-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/lkfsy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard0-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard0-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard0-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/yaxci')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kuadx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cuefo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/sqybx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vfsdj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-shard1-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fbskn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-shard1-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-shard1-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-shard1-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/byedm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/kiibl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/rysgj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hzlzt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/asimz')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-smm-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vbjey')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-smm-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-smm-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-smm-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dtxfg')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/smauv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/educm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/jrivt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xqeat')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-tasks-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/dhden')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-tasks-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-tasks-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-tasks-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eumzx')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high DTU')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"dtu_consumption_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db','database: Reporting high DTU')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/bmjqa')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"cpu_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' Database: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eglyp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database low storage space')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\"; let metricName =\"storage_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "0", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting low storage space')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "75", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/qlfxy')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Data IO Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"physical_data_read_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Data IO Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ehpoo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high Resource Utilization')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"log_write_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-web-db',' database: Reporting high Resource Utilization')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cxewb')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "3" + }, + { + "name": "frequency", + "value": "15" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-web-db',' database reporting high concurrent requests')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-web-db','\";let metricName =\"workers_percent\";let resourceProvider =\"MICROSOFT.SQL\";let resourceIdContains =\"/DATABASES/\";AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m),Resource | top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "15", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ', parameters('deploymentId'),'-web-db',' database: Reporting high concurrent requests')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertwebserverfarms.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertwebserverfarms.json new file mode 100644 index 00000000..6027ff05 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertwebserverfarms.json @@ -0,0 +1,929 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/lvzsu')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/fzdgn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pevkp')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ordaf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/pxvcw')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/xlfjv')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hlesd')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/huyop')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/eimyt')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/wrqyn')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gxels')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ojwpm')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-basic-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-basic-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/cpudo')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan reporting high CPU usage')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let metricName =\"CpuPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SERVERFARMS/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Maximum) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting high CPU usage')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/hbvct')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "2" + }, + { + "name": "frequency", + "value": "10" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting plan reporting low available memory')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-resourceintensive-hp','\"; let metricName =\"MemoryPercentage\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"SERVERFARMS\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 1m)| top 30 by TimeGenerated')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "10", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-resourceintensive-hp',' Hosting Plan: Reporting low available memory')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "95", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "30", + "metricTriggerType": "Consecutive" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertwebsites.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertwebsites.json new file mode 100644 index 00000000..64e1a4c4 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/alertwebsites.json @@ -0,0 +1,803 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceLocation]", + "metadata": { + "description": "the Location in which your OMS will be provisioned" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "actionGroupName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').actionGroupName]", + "metadata": { + "description": "The name of the action group to be associated with the alerts actions" + } + } + }, + "variables": { + "actionGroupResourceId": "[resourceId('Microsoft.Insights/actionGroups',parameters('actionGroupName'))]", + "workspaceApiVersion": "2017-04-26-preview", + "alertResourcesApiVersion": "2018-04-16" + }, + "resources": [ + { + "name": "[concat(parameters('omsWorkspaceName'), '/oqygl')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cd',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cd',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/svtze')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cm',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cm',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/crbot')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-processing',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-processing',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/oavpq')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-cortex-reporting',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-cortex-reporting',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vtdew')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-ops',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-ops',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/zpdpf')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-ma-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-ma-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/upkac')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-prc',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-prc',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/brdep')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-rep',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-rep',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/whfag')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-si',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-si',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/gkbbs')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-collect',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-collect',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/ecbai')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-refdata',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-refdata',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + }, + { + "name": "[concat(parameters('omsWorkspaceName'), '/vybgj')]", + "type": "Microsoft.OperationalInsights/workspaces/savedSearches", + "apiVersion": "[variables('workspaceApiVersion')]", + "tags": {}, + "properties": { + "etag": "*", + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "displayName": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "version": "2.0", + "category": "AlertIbiza", + "tags": [ + { + "name": "tier", + "value": "1" + }, + { + "name": "frequency", + "value": "5" + } + ] + } + }, + { + "name": "[concat(parameters('deploymentId'),'-xc-search',' WebApp returning high rate of 5xx errors')]", + "type": "Microsoft.Insights/scheduledqueryrules", + "apiVersion": "[variables('alertResourcesApiVersion')]", + "location": "[toLower(replace(parameters('omsWorkspaceLocation'), ' ', ''))]", + "tags": {}, + "properties": { + "description": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]", + "enabled": "true", + "source": { + "query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName =\"Http5xx\";let resourceProvider =\"MICROSOFT.WEB\";let resourceIdContains =\"/SITES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName and Resource == toupper(resourceName) | top 15 by TimeGenerated| summarize AggregatedValue = sum(Total) by bin(TimeGenerated, 24h)')]", + "dataSourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", + "queryType": "ResultCount" + }, + "schedule": { + "frequencyInMinutes": "5", + "timeWindowInMinutes": "60" + }, + "action": { + "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "severity": "1", + "throttlingInMin": "0", + "aznsAction": { + "actionGroup": [ + "[variables('actionGroupResourceId')]" + ], + "emailSubject": "[concat('Check ',parameters('deploymentId'),'-xc-search',' WebApp: High rate of Http Requests returning 5xx error')]" + }, + "trigger": { + "thresholdOperator": "GreaterThan", + "threshold": "10", + "metricTrigger": { + "thresholdOperator": "GreaterThan", + "threshold": "0", + "metricTriggerType": "Total" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/application.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/application.json new file mode 100644 index 00000000..959432f9 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/application.json @@ -0,0 +1,2900 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "omsWorkspaceName": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceName]", + "metadata": { + "description": "OMS Workspace name." + } + }, + "omsWorkspaceLocation": { + "type": "string", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + } + }, + "variables": { + "sitecoreResourceGroup": "[resourceGroup().name]", + "dashboardApiVersion": "2015-11-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Performance Overview | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Performance Overview | ',variables('sitecoreResourceGroup'))]", + "Description": "Performance Overview Description", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('WEB APPLICATIONS LOAD')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU Time per app", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"CpuTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"CpuTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "sec" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\"; let resourceIdContains=\"/MICROSOFT.WEB/SITES\"; let metricName=\"Requests\"; AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"Requests\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.WEB\";let resourceIdContains=\"/MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\";AzureMetrics | where ResourceId contains resourceIdContains and ResourceProvider == resourceProvider and MetricName == \"AverageResponseTime\" | summarize AggregatedValue = avg(Average) by Resource,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('SEARCH SERVICES PERFORMANCE')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Search requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchQueriesPerSecond\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AverageQueryResponsePerSec = avg(Average) by Resource,bin(TimeGenerated, 1s)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Search request latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"SearchLatency\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = max(Maximum) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Seconds", + "displayUnit": "Milliseconds" + }, + "customLabel": "ms" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Throttled requests per second", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let metricName =\"ThrottledSearchQueriesPercentage\";let resourceProvider =\"MICROSOFT.SEARCH\";let resourceIdContains =\"/SEARCHSERVICES/\";AzureMetrics | where ResourceProvider== resourceProvider and ResourceId contains resourceIdContains and MetricName== metricName | summarize AggregatedValue = avg(Average) by bin(TimeGenerated, 5m),Resource')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat('REDIS CACHE ',parameters('deploymentId'),'-redis')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "Operations", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"operationsPerSecond\", \"totalcommandsprocessed\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"operationsPerSecond\" , \"Operations per second\" ,MetricName == \"totalcommandsprocessed\" , \"Total commands processed\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Count" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Load", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"serverLoad\", \"percentProcessorTime\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"serverLoad\" , \"Server Load\" ,MetricName == \"percentProcessorTime\" , \"CPU\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Memory", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-redis','\";let metricName = dynamic ([\"usedmemory\", \"usedmemoryRss\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"usedmemory\" , \"Used Memory\" ,MetricName == \"usedmemoryRss\" , \"Used Memory RSS\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Bytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cd','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cm','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-processing')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-processing','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cortex-reporting')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-cortex-reporting','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-ops')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-ops','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-ma-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-prc','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-rep','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-si','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-collect')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-collect','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-refdata')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-refdata','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-search')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "HTTP requests by response code", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"Http101\", \"Http2xx\", \"Http3xx\", \"Http4xx\", \"Http5xx\"]);AzureMetrics | where Resource == toupper(resourceName) and MetricName in (metricName) | summarize AggregatedValue = sum(Count) by MetricName, bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = dynamic ([\"BytesSent\", \"BytesReceived\"]);AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (metricName) | extend Legends = case( MetricName == \"BytesSent\" , \"Out\" ,MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Latency", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName = \"',parameters('deploymentId'),'-xc-search','\";let metricName = \"AverageResponseTime\";AzureMetrics | where Resource ==toupper(resourceName) and MetricName == metricName | extend Legends = case( MetricName == \"AverageResponseTime\" , \"Response Time\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "TimeRange", + "baseUnit": "Milliseconds", + "displayUnit": "AUTO" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 2.5 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime > 0.5 and AvgRespTime <=2.5 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SITES\";let metricName=\"AverageResponseTime\"; AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName) on TimeGenerated | summarize AvgRespTime = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( AvgRespTime <=0.5 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Database Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Database Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Database Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Database Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-core-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-core-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-core-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-exmmaster-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-exmmaster-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-forms-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-forms-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-forms-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-ma-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-ma-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-ma-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-master-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-master-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-master-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-messaging-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-messaging-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-messaging-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-pools-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-pools-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-pools-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginestorage-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginestorage-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-processingenginetasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-processingenginetasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-refdata-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-refdata-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-refdata-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-reporting-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-reporting-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-reporting-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard0-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard0-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard0-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-shard1-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-shard1-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-shard1-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-smm-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-smm-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-smm-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-tasks-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-tasks-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-tasks-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-web-db')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "DTU %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\"; let resourceName=\"',parameters('deploymentId'),'-web-db','\"; let resourceIdContains=\"/DATABASES/\"; let metricName=\"dtu_consumption_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource == toupper(resourceName) | extend Legends = case( MetricName == \"dtu_consumption_percent\" , \"DTU\" ,\"\") | summarize DTUValue = avg(Maximum) by Legends , bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "CPU, Data I/O and Log I/O", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let MetricNameIn=dynamic([\"cpu_percent\", \"physical_data_read_percent\", \"log_write_percent\"]); AzureMetrics | where Resource ==toupper(resourceName) and MetricName in (MetricNameIn) | extend Legends = case( MetricName == \"cpu_percent\" , \"CPU\" ,MetricName == \"physical_data_read_percent\" , \"Data I/O\" , MetricName == \"log_write_percent\" , \"Log I/O\" ,\"\") | summarize AggregatedValue = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Storage Utilization", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceProvider=\"MICROSOFT.SQL\";let resourceName=\"',parameters('deploymentId'),'-web-db','\";let resourceIdContains=\"/DATABASES/\"; let metricName=\"storage_percent\"; AzureMetrics | where ResourceProvider==resourceProvider and ResourceId contains resourceIdContains and MetricName==metricName and Resource ==toupper(resourceName) | extend Legends = case( MetricName == \"storage_percent\" , \"Space Used\" ,\"\") | summarize value = avg(Maximum) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Percentage", + "baseUnit": "ZeroToOne", + "displayUnit": "ZeroToOne" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 90 , \"Critical\",\"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load > 70 and Load <=90 , \"High-Load\",\"\") | summarize AggregratedValue = countif(Status == \"High-Load\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.SQL/SERVERS\";let metricName=\"dtu_consumption_percent\"; AzureMetrics | distinct TimeGenerated | top 15 by TimeGenerated | join kind= inner (AzureMetrics | where ResourceId contains resourceIdContains and MetricName == metricName ) on TimeGenerated | summarize Load = max(Maximum) , ResTotalResult = count(1) by Resource | project Status = case( Load <=70 , \"Normal\",\"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + }, + { + "apiVersion": "[variables('dashboardApiVersion')]", + "name": "[concat(parameters('omsWorkspaceName'),'/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName')),'/views/Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "type": "Microsoft.OperationalInsights/workspaces/views", + "location": "[parameters('omsWorkspaceLocation')]", + "properties": { + "Id": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Name": "[concat('Web App Hosting Plan Performance | ',variables('sitecoreResourceGroup'))]", + "Description": "Web App Hosting Plan Performance", + "Author": "Sitecore", + "Source": "Sitecore", + "Version": 2, + "Dashboard": [ + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cd-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cd-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-cm-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-cm-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-prc-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-prc-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-rep-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-rep-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-si-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-si-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-basic-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-basic-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + }, + { + "Id": "LineChartCalloutStackedBuilderBlade", + "Type": "Blade", + "Version": 0, + "Configuration": { + "General": { + "title": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp')]", + "newGroup": false + }, + "charts": [ + { + "Header": { + "Title": "CPU and Memory %", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"CpuPercentage\" , \"CPU\" , MetricName == \"MemoryPercentage\" , \"Memory\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "", + "baseUnit": "", + "displayUnit": "" + }, + "customLabel": "%" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Bytes In/Out", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"BytesSent\" , \"BytesReceived\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"BytesSent\" , \"Out\" , MetricName == \"BytesReceived\" , \"In\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Bits", + "baseUnit": "Bytes", + "displayUnit": "Kilobytes" + }, + "customLabel": "" + }, + "NavigationSelect": {} + } + }, + { + "Header": { + "Title": "Queue Length", + "Subtitle": "" + }, + "LineChart": { + "Query": "[concat('let resourceName=\"',parameters('deploymentId'),'-xc-resourceintensive-hp','\";let MetricNameIn=dynamic([\"DiskQueueLength\" , \"HttpQueueLength\"]);AzureMetrics| where Resource ==toupper(resourceName) and MetricName in (MetricNameIn)| extend Legends = case( MetricName == \"DiskQueueLength\" , \"Disk\" , MetricName == \"HttpQueueLength\" , \"HTTP\" ,\"\") | summarize AggregatedValue = avg(Average) by Legends,bin(TimeGenerated, 5m)')]", + "yAxis": { + "isLogarithmic": false, + "units": { + "baseUnitType": "Count", + "baseUnit": "Ones", + "displayUnit": "AUTO" + }, + "customLabel": "Requests" + }, + "NavigationSelect": {} + } + } + ] + } + } + ], + "Filters": [], + "OverviewTile": { + "Id": "MultiQueryDonutBuilderTile", + "Type": "OverviewTile", + "Version": 2, + "Configuration": { + "Donut": { + "Arcs": { + "Arc1": { + "Legend": "Critical", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 90 , \"Critical\", \"\") | summarize AggregratedValue = countif(Status == \"Critical\")" + }, + "Arc2": { + "Legend": "High-Load", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad > 70 and AvgLoad <=90 , \"Warning\", \"\") | summarize AggregratedValue = countif(Status == \"Warning\")" + }, + "Arc3": { + "Legend": "Normal", + "Query": "let resourceIdContains=\"MICROSOFT.WEB/SERVERFARMS\";let metricName=dynamic([\"CpuPercentage\" , \"MemoryPercentage\"]); AzureMetrics | distinct TimeGenerated |top 5 by TimeGenerated | join kind= inner ( AzureMetrics | where ResourceId contains resourceIdContains and MetricName in (metricName)) on TimeGenerated | summarize MaxValue = max(Maximum) ,ResTotalResult = count(1) by Resource , MetricName | summarize AvgLoad = sum(MaxValue)/2 by Resource | project Status = case( AvgLoad <=70 , \"Normal\", \"\") | summarize AggregratedValue = countif(Status == \"Normal\")" + } + }, + "CenterLegend": { + "Text": "", + "Operation": "Sum", + "ArcsToSelect": { + "Arc1": true, + "Arc2": true, + "Arc3": true + } + }, + "Options": { + "colors": [ + "#ba141a", + "#ffb900", + "#009e49" + ] + } + }, + "Advanced": { + "DataFlowVerification": { + "Enabled": false, + "Query": "search * | limit 1 | project TimeGenerated", + "Message": "" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json new file mode 100644 index 00000000..b14a5562 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/availability.json @@ -0,0 +1,366 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": {} + }, + "deploymentId": { + "type": "string" + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "applicationInsightsLocation": { + "type": "string", + "metadata": { + "Description": "Location of the Application insights Resource" + } + } + }, + "variables": { + "webTestApiVersion": "2015-05-01", + "alertRuleApiVersion": "2016-03-01", + "applicationInsightsResourceName": "[concat(parameters('deploymentId'),'-ai')]", + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]" + }, + "resources": [ + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cd','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cd','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cd','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cd','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-cm','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-cm','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-cm','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-cm','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-prc','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-prc','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-prc','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-prc','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + }, + { + "type": "Microsoft.Insights/webtests", + "apiVersion": "[variables('webTestApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource" + }, + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "kind": "ping", + "properties": { + "SyntheticMonitorId": "[concat(parameters('deploymentId'),'-rep','-pingWebTest')]", + "Name": "[concat(parameters('deploymentId'),'-rep','-Availability Test')]", + "Description": "a web test for performing a ping to test availability of the targeted web app", + "Enabled": true, + "Frequency": 300, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-il-ch1-azr" + }, + { + "Id": "us-ca-sjc-azr" + }, + { + "Id": "apac-sg-sin-azr" + }, + { + "Id": "emea-gb-db3-azr" + }, + { + "Id": "emea-au-syd-edge" + } + ], + "Configuration": { + "WebTest": "[concat(' ') ]" + } + }, + "resources": [ + { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "type": "microsoft.insights/alertrules", + "apiVersion": "[variables('alertRuleApiVersion')]", + "location": "[parameters('applicationInsightsLocation')]", + "dependsOn": [ + "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]" + ], + "tags": { + "[concat('hidden-link:', resourceId('microsoft.insights/components/', variables('applicationInsightsResourceName')))]": "Resource", + "[concat('hidden-link:', resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest')))]": "Resource" + }, + "properties": { + "name": "[concat(parameters('deploymentId'),'-rep','-pingWebTest-alert')]", + "description": "Alert to be triggered when the Web Test fails", + "isEnabled": true, + "condition": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.LocationThresholdRuleCondition, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", + "datasource": { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleMetricDataSource, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri": "[resourceId('microsoft.insights/webtests/', concat(parameters('deploymentId'),'-rep','-pingWebTest'))]", + "metricName": "GSMT_AvRaW", + "resourceLocation": null, + "metricNamespace": null, + "legacyResourceId": null + }, + "windowSize": "PT5M", + "failedLocationCount": 2 + }, + "actions": [ + { + "$type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.RuleEmailAction, Microsoft.WindowsAzure.Management.Mon.Client", + "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", + "sendToServiceOwners": false, + "customEmails": "[split(parameters('omsWorkspaceAlertRecipients'),';')]" + } + ] + } + } + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/infrastructure.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/infrastructure.json new file mode 100644 index 00000000..aa8f0ee5 --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/infrastructure.json @@ -0,0 +1,119 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "extension": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceMetricsRetentionDays": null, + "omsWorkspaceLocation": null, + "omsWorkspaceAlertRecipients": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "omsWorkspaceMetricsRetentionDays": { + "type": "int", + "defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", + "metadata": { + "description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" + } + }, + "omsWorkspaceLocation": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceLocation]", + "allowedValues": [ + "Australia Southeast", + "Canada Central", + "Central India", + "East US", + "Japan East", + "Southeast Asia", + "UK South", + "West Europe" + ], + "metadata": { + "description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" + } + }, + "omsWorkspaceAlertRecipients": { + "type": "string", + "defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", + "metadata": { + "Description": "List of recipients for the email alert separated by semicolon" + } + }, + "templateLinkBase": { + "type": "string", + "minLength": 1, + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + } + }, + "variables": { + "subscription": "[subscription().subscriptionId]", + "sitecoreResourceGroup": "[resourceGroup().name]", + "omsWorkspaceName": "[concat(toLower(parameters('deploymentId')), '-oms')]", + "omsWorkspaceId": "[Concat('/subscriptions/', variables('subscription'), '/resourceGroups/', variables('sitecoreResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', variables('omsWorkspaceName'))]", + "recipientsEmailsArray": "[split(parameters('omsWorkspaceAlertRecipients'),';')]", + "resourcesApiVersion": "2016-09-01", + "omsWorkspaceApiVersion": "2017-03-15-preview", + "omsWorkspaceSku": "standalone", + "actionGroupApiVersion": "2018-03-01", + "actionGroupName": "[concat(toLower(parameters('deploymentId')), '-AG')]" + }, + "resources": [ + { + "apiVersion": "[variables('omsWorkspaceApiVersion')]", + "name": "[variables('omsWorkspaceName')]", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "[parameters('omsWorkspaceLocation')]", + "id": "[variables('omsWorkspaceId')]", + "properties": { + "sku": { + "name": "[variables('omsWorkspaceSku')]" + }, + "retention": "[parameters('omsWorkspaceMetricsRetentionDays')]" + } + }, + { + "type": "Microsoft.Insights/actionGroups", + "apiVersion": "[variables('actionGroupApiVersion')]", + "name": "[variables('actionGroupName')]", + "location": "global", + "properties": { + "groupShortName": "ScAlerts", + "enabled": true, + "smsReceivers": [], + "webhookReceivers": [], + "copy": [ + { + "name": "emailReceivers", + "count": "[length(variables('recipientsEmailsArray'))]", + "input": { + "name": "[concat('email',copyIndex('emailReceivers'))]", + "emailAddress": "[variables('recipientsEmailsArray')[copyIndex('emailReceivers')]]", + "useCommonAlertSchema": true + } + } + ] + } + } + ], + "outputs": { + "infrastructure": { + "type": "object", + "value": { + "omsWorkspaceApiVersion": "[variables('omsWorkspaceApiVersion')]", + "omsWorkspaceName": "[variables('omsWorkspaceName')]", + "omsWorkspaceId": "[variables('omsWorkspaceId')]", + "actionGroupName": "[variables('actionGroupName')]" + } + } + } +} \ No newline at end of file diff --git a/Sitecore 9.1.1/XP/addons/Monitoring/nested/integration.json b/Sitecore 9.1.1/XP/addons/Monitoring/nested/integration.json new file mode 100644 index 00000000..39dd4cbe --- /dev/null +++ b/Sitecore 9.1.1/XP/addons/Monitoring/nested/integration.json @@ -0,0 +1,588 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "infrastructure": { + "type": "secureObject", + "defaultValue": { + "omsWorkspaceId": null + } + }, + "deploymentId": { + "type": "string", + "defaultValue": "[deployment().name]" + }, + "omsWorkspaceId": { + "type": "string", + "defaultValue": "[parameters('infrastructure').omsWorkspaceId]", + "metadata": { + "description": "OMS Workspace ID." + } + }, + "searchProvider": { + "type": "string", + "defaultValue": "Azure" + } + }, + "variables": { + "diagnosticSettingsApiVersion": "2017-05-01-preview" + }, + "resources": [ + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-redis','/Microsoft.Insights/service')]", + "type": "Microsoft.Cache/Redis/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-as','/Microsoft.Insights/service')]", + "condition": "[equals(parameters('searchProvider'), 'Azure')]", + "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-core-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-exmmaster-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-forms-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-ma-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-master-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-messaging-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-pools-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginestorage-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-processingenginetasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-refdata-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-reporting-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard0-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-shard1-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-smm-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-tasks-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-sql/',parameters('deploymentId'),'-web-db','/Microsoft.Insights/service')]", + "type": "Microsoft.Sql/servers/databases/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-basic-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-resourceintensive-hp','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/serverFarms/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cd','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cm','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-processing','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-cortex-reporting','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-ops','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-ma-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-prc','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-rep','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-si','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-collect','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-refdata','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + }, + { + "apiVersion": "[variables('diagnosticSettingsApiVersion')]", + "name": "[concat(parameters('deploymentId'),'-xc-search','/Microsoft.Insights/service')]", + "type": "Microsoft.Web/sites/providers/diagnosticSettings", + "properties": { + "mode": "Incremental", + "workspaceId": "[parameters('omsWorkspaceId')]", + "logs": [], + "metrics": [ + { + "enabled": true + } + ] + } + } + ] +} \ No newline at end of file